You are here

public function SystemEmailToUsersOfRole::__construct in Rules 8.3

Constructs a SystemEmailToUsersOfRole object.

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.

\Drupal\Core\Logger\LoggerChannelInterface $logger: The rules logger service.

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager service.

\Drupal\user\UserStorageInterface $userStorage: The user storage service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/RulesAction/SystemEmailToUsersOfRole.php, line 84

Class

SystemEmailToUsersOfRole
Provides a 'Email to users of a role' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerChannelInterface $logger, MailManagerInterface $mail_manager, UserStorageInterface $userStorage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->logger = $logger;
  $this->mailManager = $mail_manager;
  $this->userStorage = $userStorage;
}