You are here

protected function MenuPositionRule::conditionPluginManager in Menu Position 8

Gets the condition plugin manager.

Return value

\Drupal\Core\Executable\ExecutableManagerInterface The condition plugin manager.

1 call to MenuPositionRule::conditionPluginManager()
MenuPositionRule::getConditions in src/Entity/MenuPositionRule.php
Returns the content type conditions.

File

src/Entity/MenuPositionRule.php, line 311

Class

MenuPositionRule
Defines the MenuPositionRule entity.

Namespace

Drupal\menu_position\Entity

Code

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