You are here

public function EntityAliasTypeBase::__construct in Pathauto 8

Constructs a EntityAliasTypeBase instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

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

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value: The key/value manager service.

\Drupal\Core\Database\Connection $database: The database connection.

Overrides ContextAwarePluginBase::__construct

1 call to EntityAliasTypeBase::__construct()
ForumAliasType::__construct in src/Plugin/pathauto/AliasType/ForumAliasType.php
Constructs a ForumAliasType instance.
1 method overrides EntityAliasTypeBase::__construct()
ForumAliasType::__construct in src/Plugin/pathauto/AliasType/ForumAliasType.php
Constructs a ForumAliasType instance.

File

src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php, line 94

Class

EntityAliasTypeBase
A pathauto alias type plugin for entities with canonical links.

Namespace

Drupal\pathauto\Plugin\pathauto\AliasType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, KeyValueFactoryInterface $key_value, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->keyValue = $key_value;
  $this->database = $database;
}