You are here

public function FieldableEdgeEntityStorageBase::countFieldData in Apigee Edge 8

Determines the number of entities with values for a given field.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field for which to count data records.

bool $as_bool: (Optional) Optimizes the query for checking whether there are any records or not. Defaults to FALSE.

Return value

bool|int The number of entities. If $as_bool parameter is TRUE then the value will either be TRUE or FALSE.

Overrides FieldableEntityStorageInterface::countFieldData

See also

\Drupal\Core\Entity\FieldableEntityStorageInterface::purgeFieldData()

1 method overrides FieldableEdgeEntityStorageBase::countFieldData()
AttributesAwareFieldableEdgeEntityStorageBase::countFieldData in src/Entity/Storage/AttributesAwareFieldableEdgeEntityStorageBase.php
Determines the number of entities with values for a given field.

File

src/Entity/Storage/FieldableEdgeEntityStorageBase.php, line 132

Class

FieldableEdgeEntityStorageBase
Base class for fieldable Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

public function countFieldData($storage_definition, $as_bool = FALSE) {
  return $as_bool ? FALSE : 0;
}