public function MenuLinkContentForm::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/menu_link_content/src/Form/MenuLinkContentForm.php \Drupal\menu_link_content\Form\MenuLinkContentForm::__construct()
Constructs a MenuLinkContentForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector: The menu parent form selector service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.
Overrides ContentEntityForm::__construct
File
- core/
modules/ menu_link_content/ src/ Form/ MenuLinkContentForm.php, line 56 - Contains \Drupal\menu_link_content\Form\MenuLinkContentForm.
Class
- MenuLinkContentForm
- Provides a form to add/update content menu links.
Namespace
Drupal\menu_link_content\FormCode
public function __construct(EntityManagerInterface $entity_manager, MenuParentFormSelectorInterface $menu_parent_selector, LanguageManagerInterface $language_manager, PathValidatorInterface $path_validator) {
parent::__construct($entity_manager, $language_manager);
$this->menuParentSelector = $menu_parent_selector;
$this->pathValidator = $path_validator;
}