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];
  }
}
doc_Drupal
2016-10-29 09:46:07
Comments
Leave a Comment

Please login to continue.