You are here

public function TaxonomyMenuHelper::getTermMenusByVocabulary in Taxonomy menu 8.3

A reverse lookup of a taxonomy term menus by vocabulary.

Parameters

string $vid: The vocabulary id.

Return value

\Drupal\taxonomy_menu\TaxonomyMenuInterface[] The Taxonomy Menu

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

File

src/TaxonomyMenuHelper.php, line 52

Class

TaxonomyMenuHelper
Class TaxonomyMenu.

Namespace

Drupal\taxonomy_menu

Code

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