connection = $connection; $this->workspaceManager = $workspace_manager; $this->namespaces = QueryBase::getNamespaces($this); } /** * {@inheritdoc} */ public function get(EntityTypeInterface $entity_type, $conjunction) { $class = QueryBase::getClass($this->namespaces, 'Query'); return new $class($entity_type, $conjunction, $this->connection, $this->namespaces, $this->workspaceManager); } /** * {@inheritdoc} */ public function getAggregate(EntityTypeInterface $entity_type, $conjunction) { $class = QueryBase::getClass($this->namespaces, 'QueryAggregate'); return new $class($entity_type, $conjunction, $this->connection, $this->namespaces, $this->workspaceManager); } }