You are here

protected function BackgroundImageTextBlock::baseConfigurationDefaults in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/BackgroundImageTextBlock.php \Drupal\background_image\Plugin\Block\BackgroundImageTextBlock::baseConfigurationDefaults()
  2. 2.x src/Plugin/Block/BackgroundImageTextBlock.php \Drupal\background_image\Plugin\Block\BackgroundImageTextBlock::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/BackgroundImageTextBlock.php, line 21

Class

BackgroundImageTextBlock
Plugin annotation @Block( id = "background_image_text", admin_label = @Translation("Background Image - Text"), category = @Translation("Background Image") )

Namespace

Drupal\background_image\Plugin\Block

Code

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