function MenuLinkDefaultForm::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::__construct()
- 10 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::__construct()
- 9 core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::__construct()
- 8.9.x core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php \Drupal\Core\Menu\Form\MenuLinkDefaultForm::__construct()
Constructs a new \Drupal\Core\Menu\Form\MenuLinkDefaultForm.
Parameters
\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: The menu link manager.
\Drupal\Core\Menu\MenuParentFormSelectorInterface $menuParentSelector: The menu parent form selector service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Extension\ModuleExtensionList $moduleExtensionList: The module extension list.
File
-
core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkDefaultForm.php, line 46
Class
- MenuLinkDefaultForm
- Provides an edit form for static menu links.
Namespace
Drupal\Core\Menu\FormCode
public function __construct(protected MenuLinkManagerInterface $menuLinkManager, protected MenuParentFormSelectorInterface $menuParentSelector, TranslationInterface $string_translation, protected ModuleHandlerInterface $moduleHandler, protected ModuleExtensionList $moduleExtensionList) {
$this->stringTranslation = $string_translation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.