Skip to content

Instantly share code, notes, and snippets.

@superbiche
Created March 6, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superbiche/b8f0f45d9f609eb29448fe488de24335 to your computer and use it in GitHub Desktop.
Save superbiche/b8f0f45d9f609eb29448fe488de24335 to your computer and use it in GitHub Desktop.
diff --git a/src/Entity/TaxonomyMenu.php b/src/Entity/TaxonomyMenu.php
index 27f2c23..800f585 100644
--- a/src/Entity/TaxonomyMenu.php
+++ b/src/Entity/TaxonomyMenu.php
@@ -201,6 +201,7 @@ class TaxonomyMenu extends ConfigEntityBase implements TaxonomyMenuInterface {
$links[$mlid] = $this->buildMenuDefinition($term, $base_plugin_definition);
}
+ \Drupal::moduleHandler()->alter('taxonomy_menu_tree', $links, $terms);
return $links;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment