interface TablesInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Query/Sql/TablesInterface.php \Drupal\Core\Entity\Query\Sql\TablesInterface
 
Adds tables and fields to the SQL entity query.
Hierarchy
- interface \Drupal\Core\Entity\Query\Sql\TablesInterface
 
Expanded class hierarchy of TablesInterface
All classes that implement TablesInterface
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ TablesInterface.php, line 13  - Contains \Drupal\Core\Entity\Query\Sql\TablesInterface.
 
Namespace
Drupal\Core\Entity\Query\SqlView source
interface TablesInterface {
  /**
   * Adds a field to a database query.
   *
   * @param string $field
   *   If it contains a dot, then field name dot field column. If it doesn't
   *   then entity property name.
   * @param string $type
   *   Join type, can either be INNER or LEFT.
   * @param string $langcode
   *   The language code the field values are to be queried in.
   *
   * @return string
   *   The return value is a string containing the alias of the table, a dot
   *   and the appropriate SQL column as passed in. This allows the direct use
   *   of this in a query for a condition or sort.
   *
   * @throws \Drupal\Core\Entity\Query\QueryException
   *   If $field specifies an invalid relationship.
   */
  public function addField($field, $type, $langcode);
  /**
   * Determines whether the given field is case sensitive.
   *
   * This information can only be provided after it was added with addField().
   *
   * @param string $field_name
   *   The name of the field.
   *
   * @return bool|null
   *   TRUE if the field is case sensitive, FALSE if not. Returns NULL when the
   *   field did not define if it is case sensitive or not.
   */
  public function isFieldCaseSensitive($field_name);
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            TablesInterface:: | 
                  public | function | Adds a field to a database query. | 1 | 
| 
            TablesInterface:: | 
                  public | function | Determines whether the given field is case sensitive. | 1 |