Skip to content
Snippets Groups Projects
Commit 54d4eb50 authored by Jean Valverde's avatar Jean Valverde :construction_site:
Browse files

Issue #3502099 by huangweiqiu, mogtofu33: conflict with gin theme

parent e4e4acb7
No related branches found
No related tags found
1 merge request!75Issue #3502099 by huangweiqiu, mogtofu33: conflict with gin theme
Pipeline #428939 passed
......@@ -9,6 +9,7 @@ use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Theme\Icon\IconDefinition;
use Drupal\Core\Url;
/**
* Implements hook_help().
......@@ -89,6 +90,16 @@ function ui_icons_menu__preprocess_menu(array &$items): void {
* The menu item.
*/
function ui_icons_menu__preprocess_menu_item(array &$item): void {
// Being extra defensive on the menu as other themes/modules can alter in
// unknown ways.
if (!isset($item['url'])) {
return;
}
if (!$item['url'] instanceof Url) {
return;
}
/** @var \Drupal\Core\Url $url */
$url = &$item['url'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment