function PgsqlQueryFactory::__construct

Same name in other branches
  1. 8.9.x 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.

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);
}

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