public function ViewsMenuLinkForm::extractFormValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::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.
Overrides MenuLinkDefaultForm::extractFormValues
File
- core/
modules/ views/ src/ Plugin/ Menu/ Form/ ViewsMenuLinkForm.php, line 76 - Contains \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm.
Class
- ViewsMenuLinkForm
- Provides a form to edit Views menu links.
Namespace
Drupal\views\Plugin\Menu\FormCode
public function extractFormValues(array &$form, FormStateInterface $form_state) {
$definition = parent::extractFormValues($form, $form_state);
$definition['title'] = $form_state
->getValue('title');
$definition['description'] = $form_state
->getValue('description');
return $definition;
}