You are here

public function User::__construct in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/freelinking/User.php \Drupal\freelinking\Plugin\freelinking\User::__construct()

Initialize method.

Parameters

array $configuration: The configuration array.

string $plugin_id: The plugin ID.

array $plugin_definition: The plugin definition array.

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

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

Overrides PluginBase::__construct

File

src/Plugin/freelinking/User.php, line 54

Class

User
Freelinking user plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, AccountProxyInterface $currentUser) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->currentUser = $currentUser;
}