You are here

public function FreelinkingPrepopulate::__construct in Freelinking 4.0.x

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

Initialize method.

Parameters

array $configuration: The plugin configuration to set.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition array.

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.

Overrides PluginBase::__construct

File

modules/freelinking_prepopulate/src/Plugin/freelinking/FreelinkingPrepopulate.php, line 79

Class

FreelinkingPrepopulate
Freelinking prepopulate plugin.

Namespace

Drupal\freelinking_prepopulate\Plugin\freelinking

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, ModuleHandlerInterface $moduleHandler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->moduleHandler = $moduleHandler;
}