Provides an edit form for static menu links.
Hierarchy
- class \Drupal\Core\Menu\Form\MenuLinkDefaultForm implements ContainerInjectionInterface, MenuLinkFormInterface uses StringTranslationTrait
See also
\Drupal\Core\Menu\MenuLinkDefault
File
- core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 20
Namespace
Drupal\Core\Menu\Form
Members
Name | Modifiers | Type | Description |
---|---|---|---|
MenuLinkDefaultForm::$menuLink | protected | property | The edited menu link. |
MenuLinkDefaultForm::$menuLinkManager | protected | property | The menu link manager. |
MenuLinkDefaultForm::$menuParentSelector | protected | property | The parent form selector service. |
MenuLinkDefaultForm::$moduleData | protected | property | The module data from system_get_info(). |
MenuLinkDefaultForm::$moduleHandler | protected | property | The module handler service. |
MenuLinkDefaultForm::buildConfigurationForm | public | function | Form constructor. Overrides PluginFormInterface::buildConfigurationForm |
MenuLinkDefaultForm::create | public static | function | Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create |
MenuLinkDefaultForm::extractFormValues | public | function | Extracts a plugin definition from form values. Overrides MenuLinkFormInterface::extractFormValues |
MenuLinkDefaultForm::setMenuLinkInstance | public | function | Injects the menu link plugin instance. Overrides MenuLinkFormInterface::setMenuLinkInstance |
MenuLinkDefaultForm::submitConfigurationForm | public | function | Form submission handler. Overrides PluginFormInterface::submitConfigurationForm |
MenuLinkDefaultForm::validateConfigurationForm | public | function | Form validation handler. Overrides PluginFormInterface::validateConfigurationForm |
MenuLinkDefaultForm::__construct | public | function | Constructs a new \Drupal\Core\Menu\Form\MenuLinkDefaultForm. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Please login to continue.