From eda63b1bd3d453d0eb5b7fc32d159bedbdb3bd73 Mon Sep 17 00:00:00 2001
From: chegor <chegor@304522.no-reply.drupal.org>
Date: Fri, 4 Dec 2015 11:32:44 +0100
Subject: [PATCH] Issue #2612694 by chegor: Add new view

---
 admin_toolbar_tools/admin_toolbar_tools.module | 11 ++++++++++-
 composer.json                                  | 17 +++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 composer.json

diff --git a/admin_toolbar_tools/admin_toolbar_tools.module b/admin_toolbar_tools/admin_toolbar_tools.module
index 19cd54b..4b3818b 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.module
+++ b/admin_toolbar_tools/admin_toolbar_tools.module
@@ -344,4 +344,13 @@ function admin_toolbar_tools_menu_links_discovered_alter(&$links) {
     );
 
   }
-}
\ No newline at end of file
+  // If module views_ui enabled.
+  if (\Drupal::moduleHandler()->moduleExists('views_ui')) {
+    $links['views_ui.add'] = array(
+      'title' => 'Add new view',
+      'route_name' => 'views_ui.add',
+      'parent' => 'entity.view.collection',
+      'weight' => -5,
+    );
+  }
+}
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..d1e7628
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,17 @@
+{
+  "name": "drupal/admin_toolbar",
+  "description": "Admin Toolbar improve the default Drupal Toolbar, it lets the hover of sub menus.",
+  "type": "drupal-module",
+  "homepage": "http://drupal.org/project/admin_toolbar",
+  "authors": [
+    {
+      "name": "Mohamed Anis Taktak",
+      "homepage": "https://www.drupal.org/u/matio89"
+    }
+  ],
+  "support": {
+    "issues": "https://www.drupal.org/project/issues/admin_toolbar"
+  },
+  "license": "GPL-2.0+",
+  "require": { }
+}
-- 
GitLab