You are here

public function Role::__construct in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RecipientType/Role.php \Drupal\workbench_email\Plugin\RecipientType\Role::__construct()

Constructs a new Role object.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

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

Overrides RecipientTypeBase::__construct

File

src/Plugin/RecipientType/Role.php, line 48

Class

Role
Provides a recipient type of user role.

Namespace

Drupal\workbench_email\Plugin\RecipientType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
}