function RulesLoop::listItemInfo
2 calls to RulesLoop::listItemInfo()
- RulesLoop::evaluate in includes/
rules.plugins.inc - Evaluate, whereas by default new vars are visible in the parent's scope.
- RulesLoop::stateVariables in includes/
rules.plugins.inc - Returns available state variables for an element.
File
-
includes/
rules.plugins.inc, line 693
Class
- RulesLoop
- A loop element.
Code
public function listItemInfo() {
if (!isset($this->listItemInfo)) {
if ($info = $this->getArgumentInfo('list')) {
// Pass through the variable info keys like property info.
$this->listItemInfo = array_intersect_key($info, array_flip(array(
'type',
'property info',
'bundle',
)));
$this->listItemInfo['type'] = isset($info['type']) ? entity_property_list_extract_type($info['type']) : 'unknown';
}
else {
$this->listItemInfo = array(
'type' => 'unknown',
);
}
$this->listItemInfo['label'] = $this->settings['item:label'];
}
return $this->listItemInfo;
}