public function ViewsRulesLoop::label in Views Rules 7
Returns the label of the element.
Overrides RulesPlugin::label
File
- rules/
views_rules.plugin.inc, line 168 - Views Rules plugin implementations.
Class
- ViewsRulesLoop
- Loop plugin for using results from a view with Rules displays.
Code
public function label() {
$view = $this
->getView();
return t('Views loop: @view - @display', array(
'@view' => ($viewLabel = $view
->get_human_name()) ? $viewLabel : $view->name,
'@display' => $view->display_handler->display->display_title,
));
}