public function UnpublishByKeywordNode::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/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php, line 64
Contains \Drupal\node\Plugin\Action\UnpublishByKeywordNode.

Class

UnpublishByKeywordNode
Unpublishes a node containing certain keywords.

Namespace

Drupal\node\Plugin\Action

Code

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