You are here

public function SystemEmailToUsersOfRole::__construct in Apigee Edge 8

SystemEmailToUsersOfRole 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.

\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.

\Drupal\user\RoleStorageInterface $role_storage: The role storage service.

Overrides SystemEmailToUsersOfRole::__construct

File

modules/apigee_edge_actions/src/Plugin/RulesAction/SystemEmailToUsersOfRole.php, line 61

Class

SystemEmailToUsersOfRole
Overrides Rules SystemEmailToUsersOfRole to fix parameter upcasting.

Namespace

Drupal\apigee_edge_actions\Plugin\RulesAction

Code

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