MenuLinkDefaultForm::__construct

public MenuLinkDefaultForm::__construct(MenuLinkManagerInterface $menu_link_manager, MenuParentFormSelectorInterface $menu_parent_selector, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler) Constructs a new \Drupal\Core\Menu\Form\MenuLinkDefaultForm. Parameters \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager. \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector: The menu parent form selector service. \Drupa

MenuLinkDefaultForm::validateConfigurationForm

public MenuLinkDefaultForm::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::validateCo

MenuLinkDefaultForm::submitConfigurationForm

public MenuLinkDefaultForm::submitConfigurationForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::submitConfig

MenuLinkDefaultForm::setMenuLinkInstance

public MenuLinkDefaultForm::setMenuLinkInstance(MenuLinkInterface $menu_link) Injects the menu link plugin instance. Parameters \Drupal\Core\Menu\MenuLinkInterface $menu_link: A menu link plugin instance. Overrides MenuLinkFormInterface::setMenuLinkInstance File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 93 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code public function setMenuLinkInstance(MenuLinkInterface

MenuLinkDefaultForm::extractFormValues

public MenuLinkDefaultForm::extractFormValues(array &$form, FormStateInterface $form_state) Extracts a plugin definition from form values. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The new plugin definition values taken from the form values. The plugin ID must be returned as part of the definition. Overrides MenuLinkFormInterface::extractFormValues F

MenuLinkDefaultForm::create

public static MenuLinkDefaultForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

MenuLinkDefaultForm::buildConfigurationForm

public MenuLinkDefaultForm::buildConfigurationForm(array $form, FormStateInterface $form_state) Form constructor. Plugin forms are embedded in other forms. In order to know where the plugin form is located in the parent form, #parents and #array_parents must be known, but these are not available during the initial build phase. In order to have these properties available when building the plugin form's elements, let this method return a form element that has a #process callback and build the res

MenuLinkDefaultForm::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 50 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $moduleHandler;

MenuLinkDefaultForm::$moduleData

The module data from system_get_info(). Type: array File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 57 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $moduleData;

MenuLinkDefaultForm::$menuParentSelector

The parent form selector service. Type: \Drupal\Core\Menu\MenuParentFormSelectorInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 43 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $menuParentSelector;