public function AliasStorage::__construct in Multiversion 8
Constructs a Path CRUD object.
Parameters
\Drupal\Core\Database\Connection $connection: A database connection for reading and writing path aliases.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides AliasStorage::__construct
File
- src/
AliasStorage.php, line 46
Class
- AliasStorage
- Extends the core AliasStore class. We need this to make possible aliases to work with Multiversion and Replication.
Namespace
Drupal\multiversionCode
public function __construct(Connection $connection, ModuleHandlerInterface $module_handler, WorkspaceManagerInterface $workspace_manager, EntityTypeManagerInterface $entity_type_manager, StateInterface $state) {
parent::__construct($connection, $module_handler);
$this->workspaceManager = $workspace_manager;
$this->entityTypeManager = $entity_type_manager;
$this->state = $state;
}