You are here

public function SimplenewsSubscriptionBlock::defaultConfiguration in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/SimplenewsSubscriptionBlock.php \Drupal\simplenews\Plugin\Block\SimplenewsSubscriptionBlock::defaultConfiguration()
  2. 8 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\Block

Code

public function defaultConfiguration() {

  // By default, the block will contain 1 newsletter.
  return [
    'newsletters' => [],
    'message' => $this
      ->t('Stay informed - subscribe to our newsletter.'),
    'unique_id' => '',
  ];
}