You are here

public function MergeContactsAction::__construct in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_contact/src/Plugin/Action/MergeContactsAction.php \Drupal\crm_core_contact\Plugin\Action\MergeContactsAction::__construct()
  2. 8.2 modules/crm_core_contact/src/Plugin/Action/MergeContactsAction.php \Drupal\crm_core_contact\Plugin\Action\MergeContactsAction::__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\path_alias\PathAliasStorage $path_alias_storage: The path alias storage.

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.

\Drupal\Core\StringTranslation\TranslationManager $translation_manager: The translation manager.

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

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: The entity field manager.

\Drupal\Core\Render\Renderer $renderer: The renderer service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The Messenger service.

Overrides ConfigurableActionBase::__construct

File

modules/crm_core_contact/src/Plugin/Action/MergeContactsAction.php, line 106

Class

MergeContactsAction
Merges 2 or more contacts.

Namespace

Drupal\crm_core_contact\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PathAliasStorage $path_alias_storage, ModuleHandler $module_handler, TranslationManager $translation_manager, EntityTypeManager $entity_type_manager, EntityFieldManager $entity_field_manager, Renderer $renderer, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->pathAliasStorage = $path_alias_storage;
  $this->moduleHandler = $module_handler;
  $this->translationManager = $translation_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->renderer = $renderer;
  $this->messenger = $messenger;
}