private function ViewContent::getViews in Quick Tabs 8.3
Get list of enabled views.
1 call to ViewContent::getViews()
- ViewContent::optionsForm in src/
Plugin/ TabType/ ViewContent.php - Return form elements used on the edit/add from.
File
- src/
Plugin/ TabType/ ViewContent.php, line 158
Class
- ViewContent
- Provides a 'view content' tab type.
Namespace
Drupal\quicktabs\Plugin\TabTypeCode
private function getViews() {
$views = [];
foreach (Views::getEnabledViews() as $view_name => $view) {
$views[$view_name] = $view
->label() . ' (' . $view_name . ')';
}
ksort($views);
return $views;
}