public function ViewListController::load in Views (for Drupal 7) 8.3
Overrides Drupal\Core\Entity\EntityListController::load();
File
- views_ui/
lib/ Drupal/ views_ui/ ViewListController.php, line 21 - Definition of Drupal\views_ui\ViewListController.
Class
- ViewListController
- Provides a listing of Views.
Namespace
Drupal\views_uiCode
public function load() {
$entities = parent::load();
uasort($entities, function ($a, $b) {
$a_enabled = $a
->isEnabled();
$b_enabled = $b
->isEnabled();
if ($a_enabled != $b_enabled) {
return $a_enabled < $b_enabled;
}
return $a
->id() > $b
->id();
});
return $entities;
}