public function DomainPathHelper::__construct in Domain Path 8
DomainPathHelper constructor.
Parameters
\Drupal\Core\Session\AccountInterface $account_manager: The account manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
DomainPathHelper.php, line 61
Class
Namespace
Drupal\domain_pathCode
public function __construct(AccountInterface $account_manager, EntityTypeManagerInterface $entity_type_manager, AliasManagerInterface $alias_manager, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
$this->accountManager = $account_manager;
$this->entityTypeManager = $entity_type_manager;
$this->aliasManager = $alias_manager;
$this->moduleHandler = $module_handler;
$this->config = $config_factory
->get('domain_path.settings');
}