public function MergeContactsAction::__construct in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/Plugin/Action/MergeContactsAction.php \Drupal\crm_core_contact\Plugin\Action\MergeContactsAction::__construct()
- 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\Core\Path\AliasStorage $path_alias_storage: The path alias storage.
\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.
\Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query.
\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.
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\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, AliasStorage $path_alias_storage, ModuleHandler $module_handler, QueryFactory $entity_query, TranslationManager $translation_manager, EntityTypeManager $entity_type_manager, EntityFieldManager $entity_field_manager, Renderer $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->pathAliasStorage = $path_alias_storage;
$this->moduleHandler = $module_handler;
$this->entityQuery = $entity_query;
$this->translationManager = $translation_manager;
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->renderer = $renderer;
}