protected function BlockPluginTrait::baseConfigurationDefaults in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::baseConfigurationDefaults()
- 9 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.
File
- core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 93
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
protected function baseConfigurationDefaults() {
return [
'id' => $this
->getPluginId(),
'label' => '',
'label_display' => BlockPluginInterface::BLOCK_LABEL_VISIBLE,
'provider' => $this->pluginDefinition['provider'],
];
}