function MenuLinkFormInterface::extractFormValues

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::extractFormValues()
  2. 8.9.x core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::extractFormValues()
  3. 10 core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php \Drupal\Core\Menu\Form\MenuLinkFormInterface::extractFormValues()

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.

1 method overrides MenuLinkFormInterface::extractFormValues()
MenuLinkDefaultForm::extractFormValues in core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
Extracts a plugin definition from form values.

File

core/lib/Drupal/Core/Menu/Form/MenuLinkFormInterface.php, line 39

Class

MenuLinkFormInterface
Defines an interface for edit forms of menu links.

Namespace

Drupal\Core\Menu\Form

Code

public function extractFormValues(array &$form, FormStateInterface $form_state);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.