public function Tables::isFieldCaseSensitive

public Tables::isFieldCaseSensitive($field_name)

Determines whether the given field is case sensitive.

This information can only be provided after it was added with addField().

Parameters

string $field_name: The name of the field.

Return value

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.

Overrides TablesInterface::isFieldCaseSensitive

File

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

Class

Tables
Adds tables and fields to the SQL entity query.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function isFieldCaseSensitive($field_name) {
  if (isset($this->caseSensitiveFields[$field_name])) {
    return $this->caseSensitiveFields[$field_name];
  }
}

© 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!Tables.php/function/Tables::isFieldCaseSensitive/8.1.x