public function SimplenewsSubscriptionBlock::defaultConfiguration in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Plugin/Block/SimplenewsSubscriptionBlock.php \Drupal\simplenews\Plugin\Block\SimplenewsSubscriptionBlock::defaultConfiguration()
- 3.x src/Plugin/Block/SimplenewsSubscriptionBlock.php \Drupal\simplenews\Plugin\Block\SimplenewsSubscriptionBlock::defaultConfiguration()
Overrides BlockPluginTrait::defaultConfiguration
File
- src/
Plugin/ Block/ SimplenewsSubscriptionBlock.php, line 76
Class
- SimplenewsSubscriptionBlock
- Provides a subscription block with all available newsletters and email field.
Namespace
Drupal\simplenews\Plugin\BlockCode
public function defaultConfiguration() {
// By default, the block will contain 1 newsletter.
return [
'newsletters' => [],
'message' => $this
->t('Stay informed - subscribe to our newsletter.'),
'unique_id' => '',
];
}