You are here

protected function BlockPluginTrait::baseConfigurationDefaults in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::baseConfigurationDefaults()
  2. 10 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\Block

Code

protected function baseConfigurationDefaults() {
  return [
    'id' => $this
      ->getPluginId(),
    'label' => '',
    'provider' => $this->pluginDefinition['provider'],
    'label_display' => BlockPluginInterface::BLOCK_LABEL_VISIBLE,
  ];
}