Executes the plugin.
Overrides ExecutableInterface::execute
public function execute($comment = NULL) {
$build = comment_view($comment);
$text = drupal_render($build);
foreach ($this->configuration['keywords'] as $keyword) {
if (strpos($text, $keyword) !== FALSE) {
$comment->status->value = COMMENT_NOT_PUBLISHED;
$comment
->save();
break;
}
}
}