public function EmailField::__construct in Workbench Email 8
Same name and namespace in other branches
- 2.x src/Plugin/RecipientType/EmailField.php \Drupal\workbench_email\Plugin\RecipientType\EmailField::__construct()
Constructs a new EmailField 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.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\workbench_moderation\ModerationInformationInterface|\Drupal\content_moderation\ModerationInformationInterface $moderation_info: Moderation info service.
Overrides RecipientTypeBase::__construct
File
- src/
Plugin/ RecipientType/ EmailField.php, line 70
Class
- EmailField
- Provides a recipient type of an email field.
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, $moderation_info) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->moderationInfo = $moderation_info;
}