You are here

public function TaxonomyMenuHelper::getTermMenusByVocabulary in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/taxonomy_menu/src/TaxonomyMenuHelper.php \Drupal\taxonomy_menu\TaxonomyMenuHelper::getTermMenusByVocabulary()

A reverse lookup of a taxonomy term menus by vocabulary.

Return value

\Drupal\taxonomy_menu\TaxonomyMenuInterface[]

3 calls to TaxonomyMenuHelper::getTermMenusByVocabulary()
TaxonomyMenuHelper::generateTaxonomyMenuEntries in modules/taxonomy_menu/src/TaxonomyMenuHelper.php
Create menu entries associate with the vocabulary of this term.
TaxonomyMenuHelper::removeTaxonomyMenuEntries in modules/taxonomy_menu/src/TaxonomyMenuHelper.php
Remove menu entries associate with the vocabulary of this term.
TaxonomyMenuHelper::updateTaxonomyMenuEntries in modules/taxonomy_menu/src/TaxonomyMenuHelper.php
Update menu entries associate with the vocabulary of this term.

File

modules/taxonomy_menu/src/TaxonomyMenuHelper.php, line 41
Contains Drupal\taxonomy_menu\Controller\TaxonomyMenu.

Class

TaxonomyMenuHelper
Class TaxonomyMenu.

Namespace

Drupal\taxonomy_menu

Code

public function getTermMenusByVocabulary($vid) {
  return $this->menuStorage
    ->loadByProperties([
    'vocabulary' => $vid,
  ]);
}