Skip to content
Snippets Groups Projects
Commit befc297b authored by Marc-Oliver Teschke's avatar Marc-Oliver Teschke Committed by Jakob P
Browse files

Issue #3416954: [admin_toolbar_tools] Don't add disabled views to the admin menu

parent 417799a5
No related branches found
No related tags found
1 merge request!72Issue #3416954: [admin_toolbar_tools] Only show enabled views
Pipeline #242092 passed with warnings
......@@ -587,7 +587,7 @@ class ExtraLinks extends DeriverBase implements ContainerDeriverInterface {
'parent' => 'entity.view.collection',
'weight' => -5,
] + $base_plugin_definition;
$views = $this->entityTypeManager->getStorage('view')->loadMultiple();
$views = $this->entityTypeManager->getStorage('view')->loadByProperties(['status' => TRUE]);
foreach ($views as $view) {
$links['views_ui.' . $view->id()] = [
'title' => $view->label(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment