function ViewListBuilder::load
Same name in other branches
- 8.9.x core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::load()
- 10 core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::load()
- 11.x core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::load()
Overrides ConfigEntityListBuilder::load
1 call to ViewListBuilder::load()
- ViewListBuilder::render in core/
modules/ views_ui/ src/ ViewListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
File
-
core/
modules/ views_ui/ src/ ViewListBuilder.php, line 64
Class
- ViewListBuilder
- Defines a class to build a listing of view entities.
Namespace
Drupal\views_uiCode
public function load() {
$entities = [
'enabled' => [],
'disabled' => [],
];
foreach (parent::load() as $entity) {
if ($entity->status()) {
$entities['enabled'][] = $entity;
}
else {
$entities['disabled'][] = $entity;
}
}
return $entities;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.