You are here

public function PgsqlQueryFactory::__construct in Drupal 9

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

Constructs a PgsqlQueryFactory object.

Parameters

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

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

Overrides QueryFactory::__construct

File

core/modules/workspaces/src/EntityQuery/PgsqlQueryFactory.php, line 31

Class

PgsqlQueryFactory
Workspaces PostgreSQL-specific entity query implementation.

Namespace

Drupal\workspaces\EntityQuery

Code

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