function MenuLinkContentForm::__construct
Same name in other branches
- 9 core/modules/menu_link_content/src/Form/MenuLinkContentForm.php \Drupal\menu_link_content\Form\MenuLinkContentForm::__construct()
- 8.9.x core/modules/menu_link_content/src/Form/MenuLinkContentForm.php \Drupal\menu_link_content\Form\MenuLinkContentForm::__construct()
- 10 core/modules/menu_link_content/src/Form/MenuLinkContentForm.php \Drupal\menu_link_content\Form\MenuLinkContentForm::__construct()
Constructs a MenuLinkContentForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\Menu\MenuParentFormSelectorInterface $menuParentSelector: The menu parent form selector service.
\Drupal\Core\Path\PathValidatorInterface $pathValidator: The path validator.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides ContentEntityForm::__construct
File
-
core/
modules/ menu_link_content/ src/ Form/ MenuLinkContentForm.php, line 43
Class
- MenuLinkContentForm
- Provides a form to add/update content menu links.
Namespace
Drupal\menu_link_content\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, MenuParentFormSelectorInterface $menuParentSelector, PathValidatorInterface $pathValidator, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.