public function MenuPositionRuleForm::__construct in Menu Position 8
The constructor for the menu position rule form.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Menu\MenuParentFormSelector $menu_parent_form_selector: The menu parent form selector.
\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager.
\Drupal\Core\Condition\ConditionManager $condition_plugin_manager: The condition plugin manager.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository: The context repository.
\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route building service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
- src/
Form/ MenuPositionRuleForm.php, line 83
Class
- MenuPositionRuleForm
- The Menu Position rule form.
Namespace
Drupal\menu_position\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, MenuParentFormSelector $menu_parent_form_selector, MenuLinkManagerInterface $menu_link_manager, ConditionManager $condition_plugin_manager, ContextRepositoryInterface $context_repository, RouteBuilderInterface $route_builder, MessengerInterface $messenger) {
$this->entity_type_manager = $entity_type_manager;
$this->menu_parent_form_selector = $menu_parent_form_selector;
$this->menu_link_manager = $menu_link_manager;
$this->condition_plugin_manager = $condition_plugin_manager;
$this->context_repository = $context_repository;
$this->route_builder = $route_builder;
$this->messenger = $messenger;
}