public function EntityInterface::hasStatus in Entity API 7
Checks if the entity has a certain exportable status.
Parameters
$status: A status constant, i.e. one of ENTITY_CUSTOM, ENTITY_IN_CODE, ENTITY_OVERRIDDEN or ENTITY_FIXED.
Return value
bool For exportable entities TRUE if the entity has the status, else FALSE. In case the entity is not exportable, NULL is returned.
See also
1 method overrides EntityInterface::hasStatus()
- Entity::hasStatus in includes/
entity.inc - Checks if the entity has a certain exportable status.
File
- includes/
entity.inc, line 96 - Provides a base class for entities.
Class
- EntityInterface
- Interface for class based entities.
Code
public function hasStatus($status);