function RulesState::isEntity

Returns whether the variable with the given name is an entity.

File

includes/rules.state.inc, line 134

Class

RulesState
The rules evaluation state.

Code

public function isEntity($name) {
    $entity_info = entity_get_info();
    return isset($this->info[$name]['type']) && isset($entity_info[$this->info[$name]['type']]);
}