interface MenuLinkFormInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface
Defines an interface for edit forms of menu links.
All menu link plugins use the same interface for their configuration or editing form, but the implementations may differ.
Hierarchy
- interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\Core\Menu\Form\MenuLinkFormInterface
Expanded class hierarchy of MenuLinkFormInterface
All classes that implement MenuLinkFormInterface
See also
\Drupal\Core\Menu\MenuLinkInterface::getFormClass()
File
- core/
lib/ Drupal/ Core/ Menu/ Form/ MenuLinkFormInterface.php, line 22 - Contains \Drupal\Core\Menu\Form\MenuLinkFormInterface.
Namespace
Drupal\Core\Menu\FormView source
interface MenuLinkFormInterface extends PluginFormInterface {
/**
* Injects the menu link plugin instance.
*
* @param \Drupal\Core\Menu\MenuLinkInterface $menu_link
* A menu link plugin instance.
*/
public function setMenuLinkInstance(MenuLinkInterface $menu_link);
/**
* Extracts a plugin definition from form values.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* The new plugin definition values taken from the form values.
*/
public function extractFormValues(array &$form, FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MenuLinkFormInterface:: |
public | function | Extracts a plugin definition from form values. | 1 |
MenuLinkFormInterface:: |
public | function | Injects the menu link plugin instance. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 23 |
PluginFormInterface:: |
public | function | Form submission handler. | 21 |
PluginFormInterface:: |
public | function | Form validation handler. | 12 |