public ContentEntityNullStorage::countFieldData($storage_definition, $as_bool = FALSE)
Determines the number of entities with values for a given field.
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field for which to count data records.
bool $as_bool: (Optional) Optimises the query for checking whether there are any records or not. Defaults to FALSE.
bool|int The number of entities. If $as_bool parameter is TRUE then the value will either be TRUE or FALSE.
Overrides FieldableEntityStorageInterface::countFieldData
\Drupal\Core\Entity\FieldableEntityStorageInterface::purgeFieldData()
public function countFieldData($storage_definition, $as_bool = FALSE) { return $as_bool ? FALSE : 0; }
© 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!ContentEntityNullStorage.php/function/ContentEntityNullStorage::countFieldData/8.1.x