protected function MenuPositionRule::contextRepository 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 324
Class
- MenuPositionRule
- Defines the MenuPositionRule entity.
Namespace
Drupal\menu_position\EntityCode
protected function contextRepository() {
if (!isset($this->contextRepository)) {
$this->contextRepository = \Drupal::service('context.repository');
}
return $this->contextRepository;
}