public function QueueMessages::__construct in Mass Contact 8
Queue worker constructor.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\mass_contact\MassContactInterface $mass_contact: The mass contact helper service.
Overrides PluginBase::__construct
File
- src/
Plugin/ QueueWorker/ QueueMessages.php, line 41
Class
- QueueMessages
- Sends a mass contact message to a given user.
Namespace
Drupal\mass_contact\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MassContactInterface $mass_contact) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->massContact = $mass_contact;
}