Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityConditionGroup.php

function EntityConditionGroup::__construct

Constructs a new condition group object.

Parameters

string $conjunction: The group conjunction to use.

array $members: (optional) The group conjunction to use.

File

core/modules/jsonapi/src/Query/EntityConditionGroup.php, line 45

Class

EntityConditionGroup
A condition group for the EntityQuery.

Namespace

Drupal\jsonapi\Query

Code

public function __construct($conjunction, array $members = []) {
    if (!in_array($conjunction, self::$allowedConjunctions)) {
        throw new \InvalidArgumentException('Allowed conjunctions: AND, OR.');
    }
    $this->conjunction = $conjunction;
    $this->members = $members;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal