You are here

protected function EntityMetadataWrapper::dataAvailable in Entity API 7

Returns whether data is available to work with.

Return value

bool If we operate without any data FALSE, else TRUE.

16 calls to EntityMetadataWrapper::dataAvailable()
EntityDrupalWrapper::delete in includes/entity.wrapper.inc
Permanently delete the wrapped entity.
EntityDrupalWrapper::entityAccess in includes/entity.wrapper.inc
Checks whether the operation $op is allowed on the entity.
EntityDrupalWrapper::getBundle in includes/entity.wrapper.inc
Returns the bundle of an entity, or FALSE if it has no bundles.
EntityDrupalWrapper::getIdentifier in includes/entity.wrapper.inc
Returns the identifier of the wrapped entity.
EntityDrupalWrapper::spotBundleInfo in includes/entity.wrapper.inc
Tries to determine the bundle and adds in the according property info.

... See full list

File

includes/entity.wrapper.inc, line 113
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityMetadataWrapper
A common base class for all wrappers.

Code

protected function dataAvailable() {
  return isset($this->data) || isset($this->info['parent']) && $this->info['parent']
    ->dataAvailable();
}