You are here

public function BaseFieldDefinition::isQueryable in Drupal 8

Determines whether the field is queryable via QueryInterface.

Return value

bool TRUE if the field is queryable.

Overrides FieldStorageDefinitionInterface::isQueryable

Deprecated

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionInterface::hasCustomStorage() instead.

See also

https://www.drupal.org/node/2856563

File

core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 294

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function isQueryable() {
  @trigger_error('BaseFieldDefinition::isQueryable() is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, you should use \\Drupal\\Core\\Field\\BaseFieldDefinition::hasCustomStorage(). See https://www.drupal.org/node/2856563.', E_USER_DEPRECATED);
  return !$this
    ->hasCustomStorage();
}