function RulesReactionListBuilder::load
Overrides ConfigEntityListBuilder::load
1 call to RulesReactionListBuilder::load()
- RulesReactionListBuilder::render in src/
Controller/ RulesReactionListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
File
-
src/
Controller/ RulesReactionListBuilder.php, line 60
Class
- RulesReactionListBuilder
- Defines a class to build a listing of ReactionRuleConfig entities.
Namespace
Drupal\rules\ControllerCode
public function load() {
$entities = [
'enabled' => [],
'disabled' => [],
];
foreach (parent::load() as $entity) {
if ($entity->status()) {
$entities['enabled'][] = $entity;
}
else {
$entities['disabled'][] = $entity;
}
}
return $entities;
}