public function UnpublishByKeywordComment::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/comment/lib/Drupal/comment/Plugin/Action/UnpublishByKeywordComment.php, line 65
Contains \Drupal\comment\Plugin\Action\UnpublishByKeywordComment.

Class

UnpublishByKeywordComment
Unpublishes a comment containing certain keywords.

Namespace

Drupal\comment\Plugin\Action

Code

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