MenuLinkContentForm::__construct

public MenuLinkContentForm::__construct(EntityManagerInterface $entity_manager, MenuParentFormSelectorInterface $menu_parent_selector, LanguageManagerInterface $language_manager, PathValidatorInterface $path_validator)

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 51

Class

MenuLinkContentForm
Provides a form to add/update content menu links.

Namespace

Drupal\menu_link_content\Form

Code

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;
}
doc_Drupal
2016-10-29 09:26:45
Comments
Leave a Comment

Please login to continue.