You are here

public function EditOwnContactInformationBlock::__construct in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_user_sync/src/Plugin/Block/EditOwnContactInformationBlock.php \Drupal\crm_core_user_sync\Plugin\Block\EditOwnContactInformationBlock::__construct()

Constructs a new EditOwnContactInformationBlock instance.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\crm_core_user_sync\CrmCoreUserSyncRelationInterface $relation: Relation service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Form\FormBuilderInterface $formBuilder: Form builder.

\Drupal\Core\Session\AccountProxyInterface $accountProxy: Current user.

Overrides BlockPluginTrait::__construct

File

modules/crm_core_user_sync/src/Plugin/Block/EditOwnContactInformationBlock.php, line 77

Class

EditOwnContactInformationBlock
Provides a 'Edit own contact information' block.

Namespace

Drupal\crm_core_user_sync\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CrmCoreUserSyncRelationInterface $relation, EntityTypeManagerInterface $entityTypeManager, FormBuilderInterface $formBuilder, AccountProxyInterface $accountProxy) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->relation = $relation;
  $this->entityTypeManager = $entityTypeManager;
  $this->formBuilder = $formBuilder;
  $this->accountProxy = $accountProxy;
}