public function RulesPlugin::hasStatus in Rules 7.2
Checks if the configuration 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 TRUE if the configuration has the status, else FALSE.
See also
File
- includes/
rules.core.inc, line 1280 - Rules base classes and interfaces needed for any rule evaluation.
Class
- RulesPlugin
- Base class for rules plugins.
Code
public function hasStatus($status) {
return $this
->isRoot() && isset($this->status) && ($this->status & $status) == $status;
}