You are here

public function UnpublishByKeywordComment::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::defaultConfiguration()
  2. 10 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableActionBase::defaultConfiguration

File

core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php, line 91

Class

UnpublishByKeywordComment
Unpublishes a comment containing certain keywords.

Namespace

Drupal\comment\Plugin\Action

Code

public function defaultConfiguration() {
  return [
    'keywords' => [],
  ];
}