function BlockPluginTrait::baseConfigurationDefaults

Same name 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()
  3. 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\Block

Code

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.