You are here

public function EmailAction::submitConfigurationForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/action/src/Plugin/Action/EmailAction.php \Drupal\action\Plugin\Action\EmailAction::submitConfigurationForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.

Overrides PluginFormInterface::submitConfigurationForm

File

core/modules/action/src/Plugin/Action/EmailAction.php, line 207
Contains \Drupal\action\Plugin\Action\EmailAction.

Class

EmailAction
Sends an email message.

Namespace

Drupal\action\Plugin\Action

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['recipient'] = $form_state
    ->getValue('recipient');
  $this->configuration['subject'] = $form_state
    ->getValue('subject');
  $this->configuration['message'] = $form_state
    ->getValue('message');
}