W3cubDocs

/Drupal 8

public function MenuLinkFormInterface::extractFormValues

public MenuLinkFormInterface::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.

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!Form!MenuLinkFormInterface.php/function/MenuLinkFormInterface::extractFormValues/8.1.x