3 namespace Drupal\Core\Entity\Query\Sql;
6 * Adds tables and fields to the SQL entity query.
8 interface TablesInterface {
11 * Adds a field to a database query.
13 * @param string $field
14 * If it doesn't contain a dot, then an entity base field name. If it
15 * contains a dot, then either field name dot field column or field name dot
16 * delta dot field column. Delta can be a numeric value or a "%delta" for
19 * Join type, can either be INNER or LEFT.
20 * @param string $langcode
21 * The language code the field values are to be queried in.
24 * The return value is a string containing the alias of the table, a dot
25 * and the appropriate SQL column as passed in. This allows the direct use
26 * of this in a query for a condition or sort.
28 * @throws \Drupal\Core\Entity\Query\QueryException
29 * If $field specifies an invalid relationship.
31 public function addField($field, $type, $langcode);
34 * Determines whether the given field is case sensitive.
36 * This information can only be provided after it was added with addField().
38 * @param string $field_name
39 * The name of the field.
42 * TRUE if the field is case sensitive, FALSE if not. Returns NULL when the
43 * field did not define if it is case sensitive or not.
45 public function isFieldCaseSensitive($field_name);