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

merge-requests/2386/head
Lee Rowlands 2023-12-28 15:36:22 +10:00
parent bdc1f78b50
commit b90102de0f
No known key found for this signature in database
GPG Key ID: 2B829A3DF9204DC4
8 changed files with 0 additions and 38 deletions

View File

@ -1 +0,0 @@
<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>

Before

Width:  |  Height:  |  Size: 365 B

View File

@ -1,9 +0,0 @@
/*
* 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");
}

View File

@ -1,3 +0,0 @@
.field-icon-daterange {
background-image: url(../../../misc/icons/55565b/daterange.svg);
}

View File

@ -1,7 +0,0 @@
drupal.datetime_range-icon:
version: VERSION
css:
theme:
css/datetime_range.icon.theme.css: {}
dependencies:
- field_ui/drupal.field_ui.manage_fields

View File

@ -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';
}

View File

@ -31,6 +31,3 @@
.field-icon-reference {
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='m10.98 9v4.98h5.52v3.06h-9v6h-5.52v9.96h14.04v-9.96h-5.52v-3.06h15v3.06h-5.52v9.96h14.04v-9.96h-5.52v-6h-9v-3.06h5.52v-9.96h-14.04zm11.026.015-.016 1.995h-7.98l-.016-1.995-.016-1.995h8.044zm-8.986 18.975v2.01h-8.04v-4.02h8.04zm18 0v2.01h-8.04v-4.02h8.04z' fill='%2355565b'/%3e%3c/svg%3e");
}
.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");
}

View File

@ -31,7 +31,3 @@
.field-icon-reference {
background-image: url(../../../misc/icons/55565b/reference.svg);
}
.field-icon-daterange {
background-image: url(../../../misc/icons/55565b/daterange.svg);
}

View File

@ -26,7 +26,6 @@ class Stable9LibraryOverrideTest extends StableLibraryOverrideTestBase {
'media/drupal.media-icon',
'options/drupal.options-icon',
'telephone/drupal.telephone-icon',
'datetime_range/drupal.datetime_range-icon',
];
/**