You are here

public function SmsProcessor::__construct in SMS Framework 8

Constructs a new SmsProcessor object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\sms\Provider\SmsProviderInterface $sms_provider: The SMS provider.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/SmsProcessor.php, line 51

Class

SmsProcessor
Transmits SMS messages.

Namespace

Drupal\sms\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeManagerInterface $entity_type_manager, SmsProviderInterface $sms_provider) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->smsMessageStorage = $entity_type_manager
    ->getStorage('sms');
  $this->smsProvider = $sms_provider;
}