function BlockPluginTrait::baseConfigurationDefaults
Same name in other branches
- 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::baseConfigurationDefaults()
- 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::baseConfigurationDefaults()
- 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::baseConfigurationDefaults()
Returns generic default configuration for block plugins.
Return value
array An associative array with the default configuration.
1 call to BlockPluginTrait::baseConfigurationDefaults()
- BlockPluginTrait::setConfiguration in core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 86
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
protected function baseConfigurationDefaults() {
return [
'id' => $this->getPluginId(),
'label' => '',
'provider' => $this->pluginDefinition['provider'],
'label_display' => BlockPluginInterface::BLOCK_LABEL_VISIBLE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.