You are here

public function PathAlias::__construct in Freelinking 8.3

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

Initialize method.

Parameters

array $configuration: The plugin configuration array.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition array.

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

\Drupal\path_alias\AliasManagerInterface $aliasManager: The path alias manager.

Overrides PluginBase::__construct

File

src/Plugin/freelinking/PathAlias.php, line 56

Class

PathAlias
Freelinking path plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

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