public ContentEntityStorageBase::hasData()
Determines if the storage contains any data.
bool TRUE if the storage contains data, FALSE if not.
Overrides DynamicallyFieldableEntityStorageInterface::hasData
public function hasData() { return (bool) $this->getQuery() ->accessCheck(FALSE) ->range(0, 1) ->execute(); }
© 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!ContentEntityStorageBase.php/function/ContentEntityStorageBase::hasData/8.1.x