You are here

public function RecipientHandlerBase::__construct in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerBase::__construct()
  2. 3.x src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php \Drupal\simplenews\Plugin\simplenews\RecipientHandler\RecipientHandlerBase::__construct()

Parameters

SimplenewsNewsletter $newsletter: The simplenews newsletter.

String $handler: The name of the handler plugin to use.

array $settings: An array of settings used by the handler to build the list of recipients.

Overrides PluginBase::__construct

File

src/Plugin/simplenews/RecipientHandler/RecipientHandlerBase.php, line 37

Class

RecipientHandlerBase
Base class for all Recipient Handler classes.

Namespace

Drupal\simplenews\Plugin\simplenews\RecipientHandler

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->newsletter = $configuration['newsletter'];
}