public function BodyClass::defaultConfiguration in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/ContextReaction/BodyClass.php \Drupal\context\Plugin\ContextReaction\BodyClass::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ContextReactionPluginBase::defaultConfiguration
File
- src/
Plugin/ ContextReaction/ BodyClass.php, line 21
Class
- BodyClass
- Provides a content reaction that adds a new css class.
Namespace
Drupal\context\Plugin\ContextReactionCode
public function defaultConfiguration() {
return parent::defaultConfiguration() + [
'body_class' => '',
];
}