You are here

public function RulesState::isEntity in Rules 7.2

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

File

includes/rules.state.inc, line 134
Contains the state and data related stuff.

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']]);
}