You are here

public function JoinIntoHouseholdAction::__construct in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/Plugin/Action/JoinIntoHouseholdAction.php \Drupal\crm_core_contact\Plugin\Action\JoinIntoHouseholdAction::__construct()
  2. 8.2 modules/crm_core_contact/src/Plugin/Action/JoinIntoHouseholdAction.php \Drupal\crm_core_contact\Plugin\Action\JoinIntoHouseholdAction::__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\Session\AccountProxy $current_user: The current user service.

\Drupal\Core\Entity\EntityFormBuilder $entity_form_builder: The entity form builder service.

Overrides ConfigurableActionBase::__construct

File

modules/crm_core_contact/src/Plugin/Action/JoinIntoHouseholdAction.php, line 60

Class

JoinIntoHouseholdAction
Merges 2 or more contacts into household contact.

Namespace

Drupal\crm_core_contact\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxy $current_user, EntityFormBuilder $entity_form_builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $current_user;
  $this->entityFormBuilder = $entity_form_builder;
}