protected function TaxonomyMenu::buildMenuPluginId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/taxonomy_menu/src/Entity/TaxonomyMenu.php \Drupal\taxonomy_menu\Entity\TaxonomyMenu::buildMenuPluginId()
Generates a menu link id for the taxonomy term.
Parameters
\Drupal\taxonomy\TermInterface $term:
Return value
string
2 calls to TaxonomyMenu::buildMenuPluginId()
- TaxonomyMenu::buildMenuDefinition in modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php - Generate a menu link plugin definition for a taxonomy term.
- TaxonomyMenu::getLinks in modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php - Get menu link plugin definitions
File
- modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php, line 162 - Contains Drupal\taxonomy_menu\Entity\TaxonomyMenu.
Class
- TaxonomyMenu
- Defines the TaxonomyMenu entity.
Namespace
Drupal\taxonomy_menu\EntityCode
protected function buildMenuPluginId(TermInterface $term, $include_base_plugin_id = TRUE) {
$plugin_id = '';
if ($include_base_plugin_id) {
$plugin_id .= 'taxonomy_menu.menu_link:';
}
$plugin_id .= 'taxonomy_menu.menu_link.' . $this
->id() . '.' . $term
->id();
return $plugin_id;
}