function ViewsMenuLinkForm::extractFormValues
Same name in other branches
- 9 core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::extractFormValues()
- 8.9.x core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::extractFormValues()
- 11.x core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::extractFormValues()
Overrides MenuLinkDefaultForm::extractFormValues
File
-
core/
modules/ views/ src/ Plugin/ Menu/ Form/ ViewsMenuLinkForm.php, line 72
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.