W3cubDocs

/Drupal 8

protected function BlockBase::baseConfigurationDefaults

protected BlockBase::baseConfigurationDefaults()

Returns generic default configuration for block plugins.

Return value

array An associative array with the default configuration.

File

core/lib/Drupal/Core/Block/BlockBase.php, line 82

Class

BlockBase
Defines a base block implementation that most blocks plugins will extend.

Namespace

Drupal\Core\Block

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Block!BlockBase.php/function/BlockBase::baseConfigurationDefaults/8.1.x