You are here

protected function BackgroundImageBlock::baseConfigurationDefaults in Background Image 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Block/BackgroundImageBlock.php \Drupal\background_image\Plugin\Block\BackgroundImageBlock::baseConfigurationDefaults()
  2. 2.0.x src/Plugin/Block/BackgroundImageBlock.php \Drupal\background_image\Plugin\Block\BackgroundImageBlock::baseConfigurationDefaults()

Returns generic default configuration for block plugins.

Return value

array An associative array with the default configuration.

Overrides BlockPluginTrait::baseConfigurationDefaults

File

src/Plugin/Block/BackgroundImageBlock.php, line 21

Class

BackgroundImageBlock
Plugin annotation @Block( id = "background_image", admin_label = @Translation("Background Image"), category = @Translation("Background Image") )

Namespace

Drupal\background_image\Plugin\Block

Code

protected function baseConfigurationDefaults() {
  $defaults = parent::baseConfigurationDefaults();
  $defaults['label_display'] = 'hidden';
  return $defaults;
}