public function GotoAction::submit

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: An associative array containing the current state of the form.

Overrides ConfigurableActionInterface::submit

File

drupal/core/modules/action/lib/Drupal/action/Plugin/Action/GotoAction.php, line 58
Contains \Drupal\action\Plugin\Action\GotoAction.

Class

GotoAction
Redirects to a different URL.

Namespace

Drupal\action\Plugin\Action

Code

public function submit(array &$form, array &$form_state) {
  $this->configuration['url'] = $form_state['values']['url'];
}