You are here

public function SimplenewsSubscriptionBlock::defaultConfiguration in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/SimplenewsSubscriptionBlock.php \Drupal\simplenews\Plugin\Block\SimplenewsSubscriptionBlock::defaultConfiguration()
  2. 3.x src/Plugin/Block/SimplenewsSubscriptionBlock.php \Drupal\simplenews\Plugin\Block\SimplenewsSubscriptionBlock::defaultConfiguration()

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/SimplenewsSubscriptionBlock.php, line 78

Class

SimplenewsSubscriptionBlock
Provides an 'Simplenews subscription' block with all available newsletters and an email field.

Namespace

Drupal\simplenews\Plugin\Block

Code

public function defaultConfiguration() {

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