public function Query::__construct in CiviCRM Entity 8.3
Constructs this object.
Parameters
\Drupal\Core\Entity\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.
array $namespaces: List of potential namespaces of the classes belonging to this query.
Overrides QueryBase::__construct
File
- src/
Entity/ Query/ CiviCRM/ Query.php, line 20
Class
- Query
- The CiviCRM entity query class.
Namespace
Drupal\civicrm_entity\Entity\Query\CiviCRMCode
public function __construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces, CiviCrmApi $civicrm_api) {
parent::__construct($entity_type, $conjunction, $namespaces);
$this->civicrmApi = $civicrm_api;
}