function RulesPlugin::hasStatus

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

entity_has_status()

File

includes/rules.core.inc, line 1291

Class

RulesPlugin
Base class for rules plugins.

Code

public function hasStatus($status) {
    return $this->isRoot() && isset($this->status) && ($this->status & $status) == $status;
}