function MaskContentEntityStorage::countFieldData

Same name and namespace in other branches
  1. 4.0.x modules/ctools_entity_mask/src/MaskContentEntityStorage.php \Drupal\ctools_entity_mask\MaskContentEntityStorage::countFieldData()

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

File

modules/ctools_entity_mask/src/MaskContentEntityStorage.php, line 77

Class

MaskContentEntityStorage
Storage handler that simulates a full save, without writing to the database.

Namespace

Drupal\ctools_entity_mask

Code

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