trait QueryTrait (View source)

Provides workspaces-specific helpers for altering entity queries.

Properties

protected WorkspaceManagerInterface $workspaceManager

The workspace manager.

Methods

__construct(EntityTypeInterface $entity_type, string $conjunction, Connection $connection, array $namespaces, WorkspaceManagerInterface $workspace_manager)

Constructs a Query object.

prepare()

{@inheritdoc}

isSimpleQuery()

{@inheritdoc}

Details

__construct(EntityTypeInterface $entity_type, string $conjunction, Connection $connection, array $namespaces, WorkspaceManagerInterface $workspace_manager)

Constructs a Query object.

Parameters

EntityTypeInterface $entity_type

The entity type definition.

string $conjunction
  • AND: all of the conditions on the query need to match.
  • OR: at least one of the conditions on the query need to match.
Connection $connection

The database connection to run the query against.

array $namespaces

List of potential namespaces of the classes belonging to this query.

WorkspaceManagerInterface $workspace_manager

The workspace manager.

prepare()

{@inheritdoc}

isSimpleQuery()

{@inheritdoc}