Verified Commit aa55822a authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3409663 by sakthi_dev, gorkagr, smustgrave: Remove datetime_range icon and library

(cherry picked from commit b90102de)
parent 51ebf197
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
<svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg"><path d="m27 3.6h7.2c.9941 0 1.8.8059 1.8 1.8v28.8c0 .9941-.8059 1.8-1.8 1.8h-32.4c-.994104 0-1.8-.8059-1.8-1.8v-28.8c0-.9941.805896-1.8 1.8-1.8h7.2v-3.6h3.6v3.6h10.8v-3.6h3.6zm-23.4 10.8v18h28.8v-18zm3.6 3.6h3.6v3.6h-3.6zm9 0h3.6v3.6h-3.6zm9 0h3.6v3.6h-3.6z" fill="#55565b"/></svg>
 No newline at end of file
+0 −9
Original line number Diff line number Diff line
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
.field-icon-daterange {
  background-image: url("data:image/svg+xml,%3csvg height='36' viewBox='0 0 36 36' width='36' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m27 3.6h7.2c.9941 0 1.8.8059 1.8 1.8v28.8c0 .9941-.8059 1.8-1.8 1.8h-32.4c-.994104 0-1.8-.8059-1.8-1.8v-28.8c0-.9941.805896-1.8 1.8-1.8h7.2v-3.6h3.6v3.6h10.8v-3.6h3.6zm-23.4 10.8v18h28.8v-18zm3.6 3.6h3.6v3.6h-3.6zm9 0h3.6v3.6h-3.6zm9 0h3.6v3.6h-3.6z' fill='%2355565b'/%3e%3c/svg%3e");
}
+0 −3
Original line number Diff line number Diff line
.field-icon-daterange {
  background-image: url(../../../misc/icons/55565b/daterange.svg);
}
+0 −7
Original line number Diff line number Diff line
drupal.datetime_range-icon:
  version: VERSION
  css:
    theme:
      css/datetime_range.icon.theme.css: {}
  dependencies:
    - field_ui/drupal.field_ui.manage_fields
+0 −10
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
 * Field hooks to implement a datetime field that stores a start and end date.
 */

use Drupal\Core\Field\FieldTypeCategoryManagerInterface;
use Drupal\Core\Url;
use Drupal\Core\Routing\RouteMatchInterface;

@@ -28,12 +27,3 @@ function datetime_range_help($route_name, RouteMatchInterface $route_match) {
      return $output;
  }
}

/**
 * Implements hook_field_type_category_info_alter().
 */
function datetime_range_field_type_category_info_alter(&$definitions) {
  // The `datetime_range` field type belongs in the `general` category, so the
  // libraries need to be attached using an alter hook.
  $definitions[FieldTypeCategoryManagerInterface::FALLBACK_CATEGORY]['libraries'][] = 'datetime_range/drupal.datetime_range-icon';
}
Loading