You are here

public function RulesPlugin::elementMap in Rules 7.2

Gets the element map helper object, which helps mapping elements to ids.

Return value

RulesElementMap

File

includes/rules.core.inc, line 550
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesPlugin
Base class for rules plugins.

Code

public function elementMap() {
  $config = $this
    ->root();
  if (empty($config->map)) {
    $config->map = new RulesElementMap($config);
  }
  return $config->map;
}