You are here

public function LinkForm::extractFormValues in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Form/LinkForm.php \Drupal\colossal_menu\Form\LinkForm::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.

Overrides MenuLinkFormInterface::extractFormValues

File

src/Form/LinkForm.php, line 27

Class

LinkForm
Form controller for Link edit forms.

Namespace

Drupal\colossal_menu\Form

Code

public function extractFormValues(array &$form, FormStateInterface $form_state) {
  return $form_state
    ->getUserInput();
}