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 85

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,
  );
}
doc_Drupal
2016-10-29 08:46:35
Comments
Leave a Comment

Please login to continue.