You are here

public function AliasUniquifier::__construct in Pathauto 8

Creates a new AliasUniquifier.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\pathauto\AliasStorageHelperInterface $alias_storage_helper: The alias storage helper.

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

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager.

File

src/AliasUniquifier.php, line 66

Class

AliasUniquifier
Provides a utility for creating a unique path alias.

Namespace

Drupal\pathauto

Code

public function __construct(ConfigFactoryInterface $config_factory, AliasStorageHelperInterface $alias_storage_helper, ModuleHandlerInterface $module_handler, RouteProviderInterface $route_provider, AliasManagerInterface $alias_manager) {
  $this->configFactory = $config_factory;
  $this->aliasStorageHelper = $alias_storage_helper;
  $this->moduleHandler = $module_handler;
  $this->routeProvider = $route_provider;
  $this->aliasManager = $alias_manager;
}