W3cubDocs

/Drupal 8

protected function Query::compile

protected Query::compile()

Compiles the conditions.

Return value

\Drupal\Core\Entity\Query\Sql\Query Returns the called object.

File

core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 161

Class

Query
The SQL storage entity query class.

Namespace

Drupal\Core\Entity\Query\Sql

Code

protected function compile() {
  $this->condition->compile($this->sqlQuery);
  return $this;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!Query.php/function/Query::compile/8.1.x