You are here

public function RecipientHandlerBase::__construct in Simplenews 8.2

Same name and namespace in other branches
  1. 8 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()

RecipientHandlerBase constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

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

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->issue = $configuration['_issue'];
  $this->connection = $configuration['_connection'];
  $this->newsletterIds = $configuration['_newsletter_ids'];
}