function RulesPlugin::elementMap

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

Return value

RulesElementMap

File

includes/rules.core.inc, line 551

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;
}