Query::execute

public Query::execute()

Execute the query.

Return value

int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not.

Overrides QueryInterface::execute

File

core/lib/Drupal/Core/Entity/Query/Null/Query.php, line 18

Class

Query
Defines the entity query for configuration entities.

Namespace

Drupal\Core\Entity\Query\Null

Code

public function execute() {
  if ($this->count) {
    return 0;
  }
  return [];
}
doc_Drupal
2016-10-29 09:35:23
Comments
Leave a Comment

Please login to continue.