diff --git a/admin_toolbar_tools/admin_toolbar_tools.module b/admin_toolbar_tools/admin_toolbar_tools.module index 19cd54b5f2c072532b89fb085c36b7215eb539f1..4b3818b2d98e30fb170a3211717e8808230c3d95 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 0000000000000000000000000000000000000000..d1e7628bfb6deefd27f8dbff84fc39a0db44c4e6 --- /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": { } +}