You are here

public function IssueWidget::__construct in Simplenews 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/IssueWidget.php \Drupal\simplenews\Plugin\Field\FieldWidget\IssueWidget::__construct()

Constructs an IssueWidget.

Parameters

string $plugin_id: The plugin_id for the widget.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.

array $settings: The widget settings.

array $third_party_settings: Any third party settings.

\Drupal\simplenews\Spool\SpoolStorageInterface $spool_storage: The spool storage.

\Drupal\simplenews\recipientHandler\RecipientHandlerManager $recipient_handler_manager: The recipient handler manager.

Overrides OptionsWidgetBase::__construct

File

src/Plugin/Field/FieldWidget/IssueWidget.php, line 61

Class

IssueWidget
Plugin implementation of the 'simplenews_issue' widget.

Namespace

Drupal\simplenews\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, SpoolStorageInterface $spool_storage, RecipientHandlerManager $recipient_handler_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->spoolStorage = $spool_storage;
  $this->recipientHandlerManager = $recipient_handler_manager;
}