You are here

public function SendEmailAction::__construct in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/Plugin/Action/SendEmailAction.php \Drupal\crm_core_contact\Plugin\Action\SendEmailAction::__construct()
  2. 8.2 modules/crm_core_contact/src/Plugin/Action/SendEmailAction.php \Drupal\crm_core_contact\Plugin\Action\SendEmailAction::__construct()

Constructs a EmailAction 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\Utility\Token $token: The token service.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides ConfigurableActionBase::__construct

File

modules/crm_core_contact/src/Plugin/Action/SendEmailAction.php, line 63

Class

SendEmailAction
Sends e-mail to contacts.

Namespace

Drupal\crm_core_contact\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->token = $token;
  $this->mailManager = $mail_manager;
  $this->languageManager = $language_manager;
}