Drupal Test Helpers module API documentation - release 1.3.1

EntityQueryStubFactory

The EntityQueryStub factory.

Table of Contents

Properties

$condition  : ConditionInterface
A condition.
$dbConnection  : StubConnection
A database connection.
$namespaces  : array<string|int, mixed>
The list of namespaces.

Methods

__construct()  : mixed
Constructs a QueryStubFactory object.
get()  : QueryInterface
Instantiates an entity query for a given entity type.

Properties

Methods

get()

Instantiates an entity query for a given entity type.

public get([EntityTypeInterface $entityType = NULL ][, string $conjunction = 'AND' ][, Closure $executeFunction = NULL ]) : QueryInterface
Parameters
$entityType : EntityTypeInterface = NULL

The entity type definition.

$conjunction : string = 'AND'

The operator to use to combine conditions: 'AND' or 'OR'.

$executeFunction : Closure = NULL

The function to use for execute call.

Return values
QueryInterface

An entity query for a specific configuration entity type.


        
On this page

Search results