You are here

public function NodeTitle::__construct in Freelinking 4.0.x

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

Initialize method.

Parameters

array $configuration: Plugin configugration.

string $plugin_id: Plugin Id.

mixed $plugin_definition: Plugin definition.

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

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

Overrides PluginBase::__construct

File

src/Plugin/freelinking/NodeTitle.php, line 60

Class

NodeTitle
Node Title freelinking plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

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