function WorkspacesMenuTreeStorage::__construct

Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/WorkspacesMenuTreeStorage.php \Drupal\workspaces\WorkspacesMenuTreeStorage::__construct()

WorkspacesMenuTreeStorage constructor.

Parameters

\Drupal\workspaces\WorkspaceManagerInterface $workspaceManager: The workspace manager service.

\Drupal\workspaces\WorkspaceAssociationInterface $workspaceAssociation: The workspace association service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data.

\Drupal\Core\Cache\CacheBackendInterface $menu_cache_backend: Cache backend instance for the extracted tree data.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.

string $table: A database table name to store configuration data in.

array $options: (optional) Any additional database connection options to use in queries.

Overrides MenuTreeStorage::__construct

File

core/modules/workspaces/src/WorkspacesMenuTreeStorage.php, line 39

Class

WorkspacesMenuTreeStorage
Overrides the default menu storage to provide workspace-specific menu links.

Namespace

Drupal\workspaces

Code

public function __construct(WorkspaceManagerInterface $workspaceManager, WorkspaceAssociationInterface $workspaceAssociation, EntityTypeManagerInterface $entityTypeManager, Connection $connection, CacheBackendInterface $menu_cache_backend, CacheTagsInvalidatorInterface $cache_tags_invalidator, string $table, array $options = []) {
    parent::__construct($connection, $menu_cache_backend, $cache_tags_invalidator, $table, $options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.