You are here

public function UnpublishByKeywordNode::defaultConfiguration in Drupal 9

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableActionBase::defaultConfiguration

File

core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php, line 41

Class

UnpublishByKeywordNode
Unpublishes a node containing certain keywords.

Namespace

Drupal\node\Plugin\Action

Code

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