public function SimplenewsContentSelectionBlock::defaultConfiguration in Simplenews Content Selection 8
This method sets the block default configuration. This configuration determines the block's behavior when a block is initially placed in a region. Default values for the block configuration form should be added to the configuration array. System default configurations are assembled in BlockBase::__construct() e.g. cache setting and block title visibility.
Overrides BlockPluginTrait::defaultConfiguration
See also
\Drupal\block\BlockBase::__construct()
File
- src/
Plugin/ Block/ SimplenewsContentSelectionBlock.php, line 32
Class
- SimplenewsContentSelectionBlock
- Provides a 'Simplenews Content Selection' block.
Namespace
Drupal\simplenews_content_selection\Plugin\BlockCode
public function defaultConfiguration() {
return [
'simplenews_content_selection_block' => $this
->t('A default value. This block was created at %time', [
'%time' => date('c'),
]),
];
}