public function RuleListBuilder::render in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::render()
- 3.x src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::render()
Parameters
\Drupal\Core\Entity\EntityInterface $rng_event: The event entity to display registrations.
Overrides EntityListBuilder::render
File
- src/
Lists/ RuleListBuilder.php, line 73
Class
- RuleListBuilder
- Builds a list of rng rules.
Namespace
Drupal\rng\ListsCode
public function render(EntityInterface $rng_event = NULL) {
if (isset($rng_event)) {
$this->event = $rng_event;
}
drupal_set_message($this
->t('This rule list is for advanced users. Take care when committing any actions from this page.'), 'warning');
$render = parent::render();
$render['table']['#empty'] = t('No rules found for this event.');
return $render;
}