public function UnpublishByKeywordComment::defaultConfiguration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::defaultConfiguration()
- 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\ActionCode
public function defaultConfiguration() {
return [
'keywords' => [],
];
}