public function MessageAction::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/MessageAction.php, line 87
Contains \Drupal\action\Plugin\Action\MessageAction.

Class

MessageAction
Sends a message to the current user's screen.

Namespace

Drupal\action\Plugin\Action

Code

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