function ViewsMenuLinkForm::extractFormValues

Same name in other branches
  1. 9 core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::extractFormValues()
  2. 10 core/modules/views/src/Plugin/Menu/Form/ViewsMenuLinkForm.php \Drupal\views\Plugin\Menu\Form\ViewsMenuLinkForm::extractFormValues()
  3. 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\Form

Code

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.