You are here

protected function MenuPositionRule::menuLinkManager in Menu Position 8

Gets the condition plugin manager.

Return value

\Drupal\Core\Plugin\Context\ContextRepositoryInterface The condition plugin manager.

File

src/Entity/MenuPositionRule.php, line 337

Class

MenuPositionRule
Defines the MenuPositionRule entity.

Namespace

Drupal\menu_position\Entity

Code

protected function menuLinkManager() {
  if (!isset($this->menuLinkManager)) {
    $this->menuLinkManager = \Drupal::service('plugin.manager.menu.link');
  }
  return $this->menuLinkManager;
}