You are here

public function RulesElementMap::index in Rules 7.2

Makes sure each element has an assigned id.

1 call to RulesElementMap::index()
RulesElementMap::lookup in ui/ui.core.inc
Looks up the element with the given id.

File

ui/ui.core.inc, line 109
Contains core Rules UI functions.

Class

RulesElementMap
Helper object for mapping elements to ids.

Code

public function index() {
  foreach ($this
    ->getUnIndexedElements($this->configuration) as $element) {
    $id =& $element
      ->property('elementId');
    $id = ++$this->counter;
    $this->index[$id] = $element;
  }
}