function RulesElementMap::lookup

Looks up the element with the given id.

File

ui/ui.core.inc, line 142

Class

RulesElementMap
Helper object for mapping elements to ids.

Code

public function lookup($id) {
  if (!$this->index) {
    $this->index();
  }
  return isset($this->index[$id]) ? $this->index[$id] : FALSE;
}