You are here

public function QueryFactory::__construct in Workspace 8.2

Constructs a QueryFactory object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection used by the entity query.

\Drupal\workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager.

Overrides QueryFactory::__construct

File

src/EntityQuery/QueryFactory.php, line 31

Class

QueryFactory
Workspace specific entity query implementation.

Namespace

Drupal\workspace\EntityQuery

Code

public function __construct(Connection $connection, WorkspaceManagerInterface $workspace_manager) {
  $this->connection = $connection;
  $this->workspaceManager = $workspace_manager;
  $this->namespaces = QueryBase::getNamespaces($this);
}