diff --git a/admin_toolbar.info.yml b/admin_toolbar.info.yml
index 1d6729b..71523e5 100644
--- a/admin_toolbar.info.yml
+++ b/admin_toolbar.info.yml
@@ -1,8 +1,8 @@
 name: Admin Toolbar
 core: 8.x
-description: Admin Toolbar improve the default Drupal Toolbar,it lets the hover of sub menus.
+description: Admin Toolbar improves the core Drupal Toolbar by providing a drop-down menu interface.
 package: Administration
 type: module
 dependencies:
   - toolbar
-  - node
\ No newline at end of file
+  - node
diff --git a/admin_toolbar.module b/admin_toolbar.module
index 2bf2fbd..3341426 100644
--- a/admin_toolbar.module
+++ b/admin_toolbar.module
@@ -1,10 +1,17 @@
 <?php
+
+/**
+ * @file
+ * This is the module to create a drop-down menu for the core toolbar.
+ */
+
 use Drupal\Core\Menu\MenuTreeParameters;
+
 /**
  *  Implements hook_toolbar_alter().
  */
 function admin_toolbar_toolbar_alter(&$items) {
-  $items['administration']['tray']['toolbar_administration']['#pre_render'] = array('admin_toolbar_prerender_toolbar_administration_tray');
+  $items['administration']['tray']['toolbar_administration']['#pre_render'] = ['admin_toolbar_prerender_toolbar_administration_tray'];
   $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree';
 }
 /**
@@ -24,11 +31,11 @@ function admin_toolbar_prerender_toolbar_administration_tray(array $element) {
   $parameters = new MenuTreeParameters();
   $parameters->setRoot('system.admin')->excludeRoot()->setMaxDepth(4)->onlyEnabledLinks();
   $tree = $menu_tree->load(NULL, $parameters);
-  $manipulators = array(
-    array('callable' => 'menu.default_tree_manipulators:checkAccess'),
-    array('callable' => 'menu.default_tree_manipulators:generateIndexAndSort'),
-    array('callable' => 'toolbar_tools_menu_navigation_links'),
-  );
+  $manipulators = [
+    ['callable' => 'menu.default_tree_manipulators:checkAccess'],
+    ['callable' => 'menu.default_tree_manipulators:generateIndexAndSort'],
+    ['callable' => 'toolbar_tools_menu_navigation_links'],
+  ];
   $tree = $menu_tree->transform($tree, $manipulators);
   $element['administration_menu'] = $menu_tree->build($tree);
 
@@ -60,14 +67,14 @@ function toolbar_tools_menu_navigation_links(array $tree) {
       $id = substr(Crypt::hashBase64($url->getUri()), 0, 16);
     }
     else {
-      $id = str_replace(array('.', '<', '>'), array('-', '', ''), $url->getRouteName());
+      $id = str_replace(['.', '<', '>'], ['-', '', ''], $url->getRouteName());
     }
 
     // Get the non-localized title to make the icon class.
     $definition = $link->getPluginDefinition();
 
     $element->options['attributes']['class'][] = 'toolbar-icon';
-    $element->options['attributes']['class'][] = 'toolbar-icon-' . strtolower(str_replace(array('.', ' ', '_'), array('-', '-', '-'), $definition['id']));
+    $element->options['attributes']['class'][] = 'toolbar-icon-' . strtolower(str_replace(['.', ' ', '_'], ['-', '-', '-'], $definition['id']));
     $element->options['attributes']['title'] = $link->getDescription();
   }
   return $tree;
diff --git a/admin_toolbar_tools/admin_toolbar_tools.info.yml b/admin_toolbar_tools/admin_toolbar_tools.info.yml
index 23f7a14..b4e9cf4 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.info.yml
+++ b/admin_toolbar_tools/admin_toolbar_tools.info.yml
@@ -1,6 +1,6 @@
 name: Admin Toolbar Extra Tools
 core: 8.x
-description: Admin Toolbar Extra Tools adds more fonctionalities in the admin menu.
+description: The Admin Toolbar Tools module add more functions to the admin toolbar.
 package: Administration
 type: module
 dependencies:
diff --git a/admin_toolbar_tools/admin_toolbar_tools.module b/admin_toolbar_tools/admin_toolbar_tools.module
index 4db0262..e5bb5a1 100644
--- a/admin_toolbar_tools/admin_toolbar_tools.module
+++ b/admin_toolbar_tools/admin_toolbar_tools.module
@@ -1,28 +1,32 @@
 <?php
 
-use Drupal\Core\Routing\RouteMatchInterface;
-
 /**
  * @file
- * Prvides extra menu links for admin_toolbar.
+ * Provides extra menu links for the core drupal toolbar.
  */
 
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\StringTranslation\TranslatableMarkup;
+
 /**
  * Implements hook_toolbar().
  */
 function admin_toolbar_tools_toolbar() {
-  $items = array();
-  $items['admin_toolbar_tools'] = array(
+  $items = [];
+  $items['admin_toolbar_tools'] = [
     '#type' => 'toolbar_item',
-    '#attributes' => array(
-      'class' => array('toolbar-icon', 'toolbar-icon-admin-toolbar-tools-help'),
-    ),
-    '#attached' => array(
-      'library' => array(
+    'tab' => [
+      '#type' => 'link',
+      '#attributes' => [
+        'class' => ['toolbar-icon', 'toolbar-icon-admin-toolbar-tools-help'],
+      ],
+    ],
+    '#attached' => [
+      'library' => [
         'admin_toolbar_tools/toolbar.icon',
-      ),
-    ),
-  );
+      ],
+    ],
+  ];
   return $items;
 }
 
@@ -34,7 +38,7 @@ function admin_toolbar_tools_help($route_name, RouteMatchInterface $route_match)
     case 'help.page.admin_toolbar_tools':
       $output = '';
       $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('The Admin Toolbar Tools module allows you to to add more fonctionalities to the toolbar like flush caches, runnig cron.') . '</p>';
+      $output .= '<p>' . t('The Admin Toolbar Tools module add more functions to the admin toolbar like cache rebuild and running cron.') . '</p>';
       return $output;
   }
 }
@@ -43,431 +47,415 @@ function admin_toolbar_tools_help($route_name, RouteMatchInterface $route_match)
  *  Implements hook_menu_links_discovered_alter().
  */
 function admin_toolbar_tools_menu_links_discovered_alter(&$links) {
-  $links['admin_toolbar_tools.help'] = array(
-    'title' => t('Tools'),
+  $links['admin_toolbar_tools.help'] = [
+    'title' => new TranslatableMarkup('Tools'),
     'route_name' => '<front>',
     'parent' => 'system.admin',
-    'weight' => -100
-  );
+    'weight' => -100,
+  ];
   // Add system links.
-  $links['system.admin_index'] = array(
-    'title' => t('Index'),
+  $links['system.admin_index'] = [
+    'title' => new TranslatableMarkup('Index'),
     'route_name' => 'system.admin_index',
     'parent' => 'admin_toolbar_tools.help',
     'weight' => -100,
-  );
-  $links['system.run_cron'] = array(
-    'title' => t('Run cron'),
+  ];
+  $links['system.run_cron'] = [
+    'title' => new TranslatableMarkup('Run cron'),
     'route_name' => 'admin_toolbar.run.cron',
     'parent' => 'admin_toolbar_tools.help',
-    'weight' => -8
-  );
-  $links['system.db_update'] = array(
-    'title' => t('Run database updates'),
+    'weight' => -8,
+  ];
+  $links['system.db_update'] = [
+    'title' => new TranslatableMarkup('Run Updates'),
     'route_name' => 'system.db_update',
     'parent' => 'admin_toolbar_tools.help',
-    'weight' => -6
-  );
-  $links['system.modules_uninstall'] = array(
-    'title' => t('Uninstall'),
+    'weight' => -6,
+  ];
+  $links['system.modules_uninstall'] = [
+    'title' => new TranslatableMarkup('Uninstall'),
     'route_name' => 'system.modules_uninstall',
     'parent' => 'system.modules_list',
-  );
-  $content_entities = array(
-    "block_content" => array(
+  ];
+  // Defining the machine names for all core content entities.
+  $content_entities = [
+    "block_content" => [
       "content_entity" => "block_content",
-      "config_entity" => "block_content_type"
-    ),
-    "comment" => array(
+      "config_entity" => "block_content_type",
+    ],
+    "comment" => [
       "content_entity" => "comment",
-      "config_entity" => "comment_type"
-    ),
-    "contact" => array(
+      "config_entity" => "comment_type",
+    ],
+    "contact" => [
       "content_entity" => "contact_message",
-      "config_entity" => "contact_form"
-    ),
-    "node" => array("content_entity" => "node", "config_entity" => "node_type"),
-    "taxonomy" => array(
+      "config_entity" => "contact_form",
+    ],
+    "node" => [
+      "content_entity" => "node",
+      "config_entity" => "node_type",
+    ],
+    "taxonomy" => [
       "content_entity" => "taxonomy_term",
-      "config_entity" => "taxonomy_vocabulary"
-    ),
-  );
-  // Add  common links to entities.
-  // The common links for entities are :
-  // - Editing entity, Deleting entity,manage fields for entity
-  //, manage form display for an entity, entity view display and others links relating to entity
+      "config_entity" => "taxonomy_vocabulary",
+    ],
+  ];
+
+  // Add common links to entities if parent module exists.
+  // The common links for entities are:
+  // - Editing an entity, Deleting an entity, managing fields for an entity,
+  // - manage form display for an entity, entity view display.
+  // - Others links relating to entity are included here as well.
   foreach ($content_entities as $module_name => $entities) {
-    $config_entity = $entities['config_entity'];
-    $content_entity = $entities['content_entity'];
-    foreach (\Drupal::entityManager()
-               ->getBundleInfo($content_entity) as $machine_name => $bundle) {
-      $links["entity." . $config_entity . ".edit_form." . $machine_name] = array(
-        'title' => t($bundle['label']),
-        'route_name' => "entity." . $config_entity . ".edit_form",
-        'parent' => "entity." . $config_entity . ".collection",
-        'route_parameters' => array(
-          $config_entity => $machine_name,
-        ),
-      );
-      $links["entity." . $config_entity . ".delete_form." . $machine_name] = array(
-        'title' => t('Delete'),
-        'route_name' => "entity." . $config_entity . ".delete_form",
-        'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
-        'route_parameters' => array(
-          $config_entity => $machine_name,
-        ),
-      );
-      if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
-        $links["entity." . $content_entity . ".field_ui_fields" . $machine_name] = array(
-          'title' => t('Manage fields'),
-          'route_name' => "entity." . $content_entity . ".field_ui_fields",
+    if (\Drupal::moduleHandler()->moduleExists($module_name)) {
+      $config_entity = $entities['config_entity'];
+      $content_entity = $entities['content_entity'];
+      foreach (\Drupal::entityManager()
+                 ->getBundleInfo($content_entity) as $machine_name => $bundle) {
+        $links["entity." . $config_entity . ".edit_form." . $machine_name] = [
+          'title' => $bundle['label'],
+          'route_name' => "entity." . $config_entity . ".edit_form",
+          'parent' => "entity." . $config_entity . ".collection",
+          'route_parameters' => [$config_entity => $machine_name],
+        ];
+        $links["entity." . $config_entity . ".delete_form." . $machine_name] = [
+          'title' => new TranslatableMarkup('Delete'),
+          'route_name' => "entity." . $config_entity . ".delete_form",
           'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
-          'route_parameters' => array(
-            $config_entity => $machine_name,
-          ),
-        );
-        $links["entity.entity_form_display." . $content_entity . ".default" . $machine_name] = array(
-          'title' => t('Manage form display'),
-          'route_name' => "entity.entity_form_display." . $content_entity . ".default",
-          'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
-          'route_parameters' => array(
-            $config_entity => $machine_name,
-          ),
-        );
-        $links["entity.entity_view_display." . $content_entity . ".default" . $machine_name] = array(
-          'title' => t('Manage display'),
-          'route_name' => "entity.entity_view_display." . $content_entity . ".default",
-          'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
-          'route_parameters' => array(
-            $config_entity => $machine_name,
-          ),
-        );
-      }
-      if (\Drupal::moduleHandler()->moduleExists('devel')) {
-        $links["entity.$config_entity.devel_load." . $machine_name] = array(
-          'title' => t('Devel'),
-          'route_name' => "entity." . $config_entity . ".devel_load",
-          'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
-          'route_parameters' => array(
-            $config_entity => $machine_name,
-          ),
-        );
+          'route_parameters' => [$config_entity => $machine_name],
+        ];
+        if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
+          $links["entity." . $content_entity . ".field_ui_fields" . $machine_name] = [
+            'title' => new TranslatableMarkup('Manage fields'),
+            'route_name' => "entity." . $content_entity . ".field_ui_fields",
+            'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
+            'route_parameters' => [$config_entity => $machine_name],
+          ];
+          $links["entity.entity_form_display." . $content_entity . ".default" . $machine_name] = [
+            'title' => new TranslatableMarkup('Manage form display'),
+            'route_name' => "entity.entity_form_display." . $content_entity . ".default",
+            'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
+            'route_parameters' => [$config_entity => $machine_name],
+          ];
+          $links["entity.entity_view_display." . $content_entity . ".default" . $machine_name] = [
+            'title' => new TranslatableMarkup('Manage display'),
+            'route_name' => "entity.entity_view_display." . $content_entity . ".default",
+            'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
+            'route_parameters' => [$config_entity => $machine_name],
+          ];
+        }
+        if (\Drupal::moduleHandler()->moduleExists('devel')) {
+          $links["entity.$config_entity.devel_load." . $machine_name] = [
+            'title' => new TranslatableMarkup('Devel'),
+            'route_name' => "entity." . $config_entity . ".devel_load",
+            'parent' => "entity." . $config_entity . ".edit_form." . $machine_name,
+            'route_parameters' => [$config_entity => $machine_name],
+          ];
+        }
       }
     }
   }
 // Add user links.
-  $links['user.admin_create'] = array(
-    'title' => t('Add user'),
+  $links['user.admin_create'] = [
+    'title' => new TranslatableMarkup('Add user'),
     'route_name' => 'user.admin_create',
     'parent' => 'entity.user.collection',
-  );
-  $links['user.admin_permissions'] = array(
-    'title' => t('Permissions'),
+  ];
+  $links['user.admin_permissions'] = [
+    'title' => new TranslatableMarkup('Permissions'),
     'route_name' => 'user.admin_permissions',
     'parent' => 'entity.user.collection',
-  );
-  $links['entity.user_role.collection'] = array(
-    'title' => t('Roles'),
+  ];
+  $links['entity.user_role.collection'] = [
+    'title' => new TranslatableMarkup('Roles'),
     'route_name' => 'entity.user_role.collection',
     'parent' => 'entity.user.collection',
-  );
-  $links['user.logoutt'] = array(
-    'title' => t('Log out'),
+  ];
+  $links['user.logout'] = [
+    'title' => new TranslatableMarkup('Logout'),
     'route_name' => 'user.logout',
     'parent' => 'admin_toolbar_tools.help',
     'weight' => 10,
-  );
-  $links['user.role_add'] = array(
-    'title' => t('Add role'),
+  ];
+  $links['user.role_add'] = [
+    'title' => new TranslatableMarkup('Add role'),
     'route_name' => 'user.role_add',
     'parent' => 'entity.user_role.collection',
     'weight' => -5,
-  );
+  ];
+
   if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
-    $links['entity.user.field_ui_fields_'] = array(
-      'title' => t('Manage fields'),
+    $links['entity.user.field_ui_fields_'] = [
+      'title' => new TranslatableMarkup('Manage fields'),
       'route_name' => 'entity.user.field_ui_fields',
       'parent' => 'entity.user.admin_form',
-    );
-    $links['entity.entity_form_display.user.default_'] = array(
-      'title' => t('Manage form display'),
+    ];
+    $links['entity.entity_form_display.user.default_'] = [
+      'title' => new TranslatableMarkup('Manage form display'),
       'route_name' => 'entity.entity_form_display.user.default',
       'parent' => 'entity.user.admin_form',
-    );
-    $links['entity.entity_view_display.user.default_'] = array(
-      'title' => t('Manage display'),
+    ];
+    $links['entity.entity_view_display.user.default_'] = [
+      'title' => new TranslatableMarkup('Manage display'),
       'route_name' => 'entity.entity_view_display.user.default',
       'parent' => 'entity.user.admin_form',
-    );
+    ];
   }
   foreach (user_roles() as $role) {
-    $links['entity.user_role.edit_form.' . $role->id()] = array(
-      'title' => t($role->label()),
+    $links['entity.user_role.edit_form.' . $role->id()] = [
+      'title' => $role->label(),
       'route_name' => 'entity.user_role.edit_form',
       'parent' => 'entity.user_role.collection',
-      'route_parameters' => array(
-        'user_role' => $role->id(),
-      ),
-    );
-    $links['entity.user_role.edit_permissions_form.' . $role->id()] = array(
-      'title' => t("Edit permissions"),
+      'route_parameters' => ['user_role' => $role->id()],
+    ];
+    $links['entity.user_role.edit_permissions_form.' . $role->id()] = [
+      'title' => new TranslatableMarkup('Edit permissions'),
       'route_name' => 'entity.user_role.edit_permissions_form',
       'parent' => 'entity.user_role.edit_form.' . $role->id(),
-      'route_parameters' => array(
-        'user_role' => $role->id(),
-      ),
-    );
-    $links['entity.user_role.delete_form.' . $role->id()] = array(
-      'title' => t("Delete"),
+      'route_parameters' => ['user_role' => $role->id()],
+    ];
+    $links['entity.user_role.delete_form.' . $role->id()] = [
+      'title' => new TranslatableMarkup('Delete'),
       'route_name' => 'entity.user_role.delete_form',
       'parent' => 'entity.user_role.edit_form.' . $role->id(),
-      'route_parameters' => array(
-        'user_role' => $role->id(),
-      ),
-    );
+      'route_parameters' => ['user_role' => $role->id()],
+    ];
+
     if (\Drupal::moduleHandler()->moduleExists('devel')) {
-      $links['entity.user_role.devel_load.' . $role->id()] = array(
-        'title' => t("Devel"),
+      $links['entity.user_role.devel_load.' . $role->id()] = [
+        'title' => new TranslatableMarkup('Devel'),
         'route_name' => 'entity.user_role.devel_load',
         'parent' => 'entity.user_role.edit_form.' . $role->id(),
-        'route_parameters' => array(
-          'user_role' => $role->id(),
-        ),
-      );
+        'route_parameters' => ['user_role' => $role->id()],
+      ];
     }
   }
 
-  $links['node.add_page']['parent'] = 'system.admin_content';
-  $links['node.type_add'] = array(
-    'title' => t('Add content type'),
-    'route_name' => 'node.type_add',
-    'parent' => 'entity.node_type.collection',
-    'weight' => -5
-  );
-// Add node links for each content type.
-  foreach (node_type_get_names() as $machine_name => $label) {
-    $links['node.add.' . $machine_name] = array(
-      'title' => t($label),
-      'route_name' => 'node.add',
-      'parent' => 'node.add_page',
-      'route_parameters' => array(
-        'node_type' => $machine_name,
-      ),
-    );
+  if (\Drupal::moduleHandler()->moduleExists('node')) {
+    $links['node.add_page']['parent'] = 'system.admin_content';
+    $links['node.type_add'] = [
+      'title' => new TranslatableMarkup('Add content type'),
+      'route_name' => 'node.type_add',
+      'parent' => 'entity.node_type.collection',
+      'weight' => -5,
+    ];
+    // Add node links for each content type.
+    foreach (node_type_get_names() as $machine_name => $label) {
+      $links['node.add.' . $machine_name] = [
+        'title' => $label,
+        'route_name' => 'node.add',
+        'parent' => 'node.add_page',
+        'route_parameters' => ['node_type' => $machine_name],
+      ];
+    }
   }
+
   if (\Drupal::moduleHandler()->moduleExists('field_ui')) {
-    $links['field_ui.entity_form_mode_add'] = array(
-      'title' => t('Add new form mode'),
+    $links['field_ui.entity_form_mode_add'] = [
+      'title' => new TranslatableMarkup('Add new form mode'),
       'route_name' => 'field_ui.entity_form_mode_add',
       'parent' => 'entity.entity_form_mode.collection',
-    );
-    $links['field_ui.entity_view_mode_add'] = array(
-      'title' => t('Add new view mode'),
+    ];
+    $links['field_ui.entity_view_mode_add'] = [
+      'title' => new TranslatableMarkup('Add new view mode'),
       'route_name' => 'field_ui.entity_view_mode_add',
       'parent' => 'entity.entity_view_mode.collection',
-    );
+    ];
   }
-  if (\Drupal::moduleHandler()->moduleExists('taxonomy')) {
 
-    $links['entity.taxonomy_vocabulary.add_form'] = array(
-      'title' => t('Add vocabulary'),
+  if (\Drupal::moduleHandler()->moduleExists('taxonomy')) {
+    $links['entity.taxonomy_vocabulary.add_form'] = [
+      'title' => new TranslatableMarkup('Add vocabulary'),
       'route_name' => 'entity.taxonomy_vocabulary.add_form',
       'parent' => 'entity.taxonomy_vocabulary.collection',
       'weight' => -5,
-    );
+    ];
     foreach (\Drupal::entityManager()
                ->getBundleInfo('taxonomy_term') as $machine_name => $bundle) {
-      $links['entity.taxonomy_term.add_form.' . $machine_name] = array(
-        'title' => t($bundle['label']),
+      $links['entity.taxonomy_term.add_form.' . $machine_name] = [
+        'title' => $bundle['label'],
         'route_name' => 'entity.taxonomy_term.add_form',
         'parent' => 'entity.taxonomy_vocabulary.edit_form',
-        'route_parameters' => array(
-          'taxonomy_vocabulary' => $machine_name,
-        ),
-      );
+        'route_parameters' => ['taxonomy_vocabulary' => $machine_name],
+      ];
     }
   }
-  if (\Drupal::moduleHandler()->moduleExists('menu_ui')) {
 
-    $links['entity.menu.add_form'] = array(
-      'title' => t('Add menu'),
+  if (\Drupal::moduleHandler()->moduleExists('menu_ui')) {
+    $links['entity.menu.add_form'] = [
+      'title' => new TranslatableMarkup('Add menu'),
       'route_name' => 'entity.menu.add_form',
       'parent' => 'entity.menu.collection',
-      'weight' => -50
-    );
+      'weight' => -50,
+    ];
     // Adding links to /admin/structure/menu.
     foreach (menu_ui_get_menus() as $machine_name => $label) {
-      $links['entity.menu.edit_form.' . $machine_name] = array(
-        'title' => t($label),
+      $links['entity.menu.edit_form.' . $machine_name] = [
+        'title' => $label,
         'route_name' => 'entity.menu.edit_form',
         'parent' => 'entity.menu.collection',
-        'route_parameters' => array(
-          'menu' => $machine_name,
-        ),
-      );
-      $links['entity.menu.delete_form.' . $machine_name] = array(
-        'title' => t('Delete'),
+        'route_parameters' => ['menu' => $machine_name],
+      ];
+      $links['entity.menu.delete_form.' . $machine_name] = [
+        'title' => new TranslatableMarkup('Delete'),
         'route_name' => 'entity.menu.delete_form',
         'parent' => 'entity.menu.edit_form.' . $machine_name,
-        'route_parameters' => array(
-          'menu' => $machine_name,
-        ),
-      );
+        'route_parameters' => ['menu' => $machine_name],
+      ];
       if (\Drupal::moduleHandler()->moduleExists('devel')) {
-        $links['entity.menu.devel_load.' . $machine_name] = array(
-          'title' => t('Devel'),
+        $links['entity.menu.devel_load.' . $machine_name] = [
+          'title' => new TranslatableMarkup('Devel'),
           'route_name' => 'entity.menu.devel_load',
           'parent' => 'entity.menu.edit_form.' . $machine_name,
-          'route_parameters' => array(
-            'menu' => $machine_name,
-          ),
-        );
+          'route_parameters' => ['menu' => $machine_name],
+        ];
       }
-      $links['entity.menu.add_link_form.' . $machine_name] = array(
-        'title' => t('Add link'),
+      $links['entity.menu.add_link_form.' . $machine_name] = [
+        'title' => new TranslatableMarkup('Add link'),
         'route_name' => 'entity.menu.add_link_form',
         'parent' => 'entity.menu.edit_form.' . $machine_name,
-        'route_parameters' => array(
-          'menu' => $machine_name,
-        ),
-      );
+        'route_parameters' => ['menu' => $machine_name],
+      ];
     }
   }
+
   // If module block_content is enabled.
   if (\Drupal::moduleHandler()->moduleExists('block_content')) {
-    $links['block_content.add_page'] = array(
-      'title' => t('Add custom block'),
+    $links['block_content.add_page'] = [
+      'title' => new TranslatableMarkup('Add custom block'),
       'route_name' => 'block_content.add_page',
       'parent' => 'block.admin_display',
-      'weight' => -100
-    );
-    $links['entity.block_content.collection'] = array(
-      'title' => t('Custom block library'),
+      'weight' => -100,
+    ];
+    $links['entity.block_content.collection'] = [
+      'title' => new TranslatableMarkup('Custom block library'),
       'route_name' => 'entity.block_content.collection',
       'parent' => 'block.admin_display',
-    );
-    $links['entity.block_content_type.collection'] = array(
-      'title' => t('Types'),
+    ];
+    $links['entity.block_content_type.collection'] = [
+      'title' => new TranslatableMarkup('Types'),
       'route_name' => 'entity.block_content_type.collection',
       'parent' => 'block.admin_display',
-    );
+    ];
   }
+
   // If module contact is enabled.
   if (\Drupal::moduleHandler()->moduleExists('contact')) {
-    $links['contact.form_add'] = array(
-      'title' => t('Add contact form'),
+    $links['contact.form_add'] = [
+      'title' => new TranslatableMarkup('Add contact form'),
       'route_name' => 'contact.form_add',
       'parent' => 'entity.contact_form.collection',
-      'weight' => -5
-    );
+      'weight' => -5,
+    ];
   }
+
   // If module update is enabled.
   if (\Drupal::moduleHandler()->moduleExists('update')) {
-    $links['update.module_update'] = array(
-      'title' => t('Update'),
+    $links['update.module_update'] = [
+      'title' => new TranslatableMarkup('Update'),
       'route_name' => 'update.module_update',
       'parent' => 'system.modules_list',
-    );
-    $links['update.module_install'] = array(
-      'title' => t('Install new module'),
+    ];
+    $links['update.module_install'] = [
+      'title' => new TranslatableMarkup('Install new module'),
       'route_name' => 'update.module_install',
       'parent' => 'system.modules_list',
-    );
+    ];
   }
+
   if (\Drupal::moduleHandler()->moduleExists('devel')) {
-    $links['admin_development'] = array(
-      'title' => ('Development'),
+    $links['admin_development'] = [
+      'title' => new TranslatableMarkup('Development'),
       'route_name' => 'system.admin_config_development',
       'parent' => 'admin_toolbar_tools.help',
-      'weight' => -8
-    );
-    $links['devel.admin_settings'] = array(
-      'title' => t('Devel settings'),
+      'weight' => -8,
+    ];
+    $links['devel.admin_settings'] = [
+      'title' => new TranslatableMarkup('Devel settings'),
       'route_name' => 'devel.admin_settings',
-      'parent' => 'admin_development'
-    );
-    $links['devel.configs_list'] = array(
-      'title' => t('Config editor'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.configs_list'] = [
+      'title' => new TranslatableMarkup('Config editor'),
       'route_name' => 'devel.configs_list',
-      'parent' => 'admin_development'
-    );
-    $links['devel.reinstall'] = array(
-      'title' => t('Reinstall Modules'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.reinstall'] = [
+      'title' => new TranslatableMarkup('Reinstall Modules'),
       'route_name' => 'devel.reinstall',
-      'parent' => 'admin_development'
-    );
-    $links['devel.menu_rebuild'] = array(
-      'title' => t('Rebuild Menu'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.menu_rebuild'] = [
+      'title' => new TranslatableMarkup('Rebuild Menu'),
       'route_name' => 'devel.menu_rebuild',
-      'parent' => 'admin_development'
-    );
-    $links['devel.state_system_page'] = array(
-      'title' => t('State editor'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.state_system_page'] = [
+      'title' => new TranslatableMarkup('State editor'),
       'route_name' => 'devel.state_system_page',
-      'parent' => 'admin_development'
-    );
-    $links['devel.theme_registry'] = array(
-      'title' => t('Theme registry'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.theme_registry'] = [
+      'title' => new TranslatableMarkup('Theme registry'),
       'route_name' => 'devel.theme_registry',
-      'parent' => 'admin_development'
-    );
-    $links['devel.entity_info_page'] = array(
-      'title' => t('Entity Info'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.entity_info_page'] = [
+      'title' => new TranslatableMarkup('Entity Info'),
       'route_name' => 'devel.entity_info_page',
-      'parent' => 'admin_development'
-    );
-    $links['devel.execute_php'] = array(
-      'title' => t('Execute PHP'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.execute_php'] = [
+      'title' => new TranslatableMarkup('Execute PHP'),
       'route_name' => 'devel.execute_php',
-      'parent' => 'admin_development'
-    );
-    $links['devel.session'] = array(
-      'title' => t('View Session'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.session'] = [
+      'title' => new TranslatableMarkup('View Session'),
       'route_name' => 'devel.session',
-      'parent' => 'admin_development'
-    );
-    $links['devel.elements_page'] = array(
-      'title' => t('Hook_elements'),
+      'parent' => 'admin_development',
+    ];
+    $links['devel.elements_page'] = [
+      'title' => new TranslatableMarkup('Hook_elements'),
       'route_name' => 'devel.elements_page',
-      'parent' => 'admin_development'
-    );
+      'parent' => 'admin_development',
+    ];
   }
+
   // If module views_ui enabled.
   if (\Drupal::moduleHandler()->moduleExists('views_ui')) {
-    $links['views_ui.add'] = array(
-      'title' => t('Add new view'),
+    $links['views_ui.add'] = [
+      'title' => new TranslatableMarkup('Add new view'),
       'route_name' => 'views_ui.add',
       'parent' => 'entity.view.collection',
       'weight' => -5,
-    );
+    ];
   }
-  $links['system.theme_settings_'] = array(
-    'title' => t('Settings'),
+  $links['system.theme_settings_'] = [
+    'title' => new TranslatableMarkup('Settings'),
     'route_name' => 'system.theme_settings',
     'parent' => 'system.themes_page',
-  );
+  ];
   if (\Drupal::moduleHandler()->moduleExists('update')) {
-    $links['update.theme_install_'] = array(
-      'title' => t('Install new theme'),
+    $links['update.theme_install_'] = [
+      'title' => new TranslatableMarkup('Install new theme'),
       'route_name' => 'update.theme_install',
       'parent' => 'system.themes_page',
-    );
-    $links['update.theme_update_'] = array(
-      'title' => t('Update'),
+    ];
+    $links['update.theme_update_'] = [
+      'title' => new TranslatableMarkup('Update'),
       'route_name' => 'update.theme_update',
       'parent' => 'system.themes_page',
-    );
+    ];
     //List of installed themes.
     $installed_themes = installedThemes();
     foreach ($installed_themes as $key_theme => $label_theme) {
-      $links['system.theme_settings_theme' . '.' . $key_theme] = array(
-        'title' => t($label_theme),
+      $links['system.theme_settings_theme' . '.' . $key_theme] = [
+        'title' => new TranslatableMarkup($label_theme),
         'route_name' => 'system.theme_settings_theme',
         'parent' => 'system.theme_settings_',
-        'route_parameters' => array(
-          'theme' => $key_theme,
-        ),
-      );
+        'route_parameters' => ['theme' => $key_theme],
+      ];
     }
   }
 }
@@ -478,7 +466,7 @@ function admin_toolbar_tools_menu_links_discovered_alter(&$links) {
  */
 function installedThemes() {
   $all_themes = \Drupal::service('theme_handler')->listInfo();
-  $themes_installed = array();
+  $themes_installed = [];
   foreach ($all_themes as $key_theme => $theme) {
     if (\Drupal::service('theme_handler')->hasUi($key_theme)) {
       $themes_installed[$key_theme] = $theme->getName();
diff --git a/admin_toolbar_tools/src/Tests/AdminToolbarToolsAlterTest.php b/admin_toolbar_tools/src/Tests/AdminToolbarToolsAlterTest.php
index aa761d4..5df2cf9 100644
--- a/admin_toolbar_tools/src/Tests/AdminToolbarToolsAlterTest.php
+++ b/admin_toolbar_tools/src/Tests/AdminToolbarToolsAlterTest.php
@@ -28,20 +28,20 @@ class AdminToolbarToolsAlterTest extends WebTestBase {
    *
    * @var array
    */
-  public static $modules = array(
+  public static $modules = [
     'toolbar',
     'admin_toolbar',
-    'admin_toolbar_tools'
-  );
+    'admin_toolbar_tools',
+  ];
 
   protected function setUp() {
     parent::setUp();
 
     // Create an administrative user and log it in.
-    $this->adminUser = $this->drupalCreateUser(array(
-        'access toolbar',
-        'access administration pages'
-      ));
+    $this->adminUser = $this->drupalCreateUser([
+      'access toolbar',
+      'access administration pages',
+    ]);
     $this->drupalLogin($this->adminUser);
   }
 
diff --git a/src/Tests/AdminToolbarAlterTest.php b/src/Tests/AdminToolbarAlterTest.php
index f67f9c6..34b7541 100644
--- a/src/Tests/AdminToolbarAlterTest.php
+++ b/src/Tests/AdminToolbarAlterTest.php
@@ -28,13 +28,13 @@ class AdminToolbarAlterTest extends WebTestBase {
    *
    * @var array
    */
-  public static $modules = array('toolbar', 'admin_toolbar');
+  public static $modules = ['toolbar', 'admin_toolbar'];
 
   protected function setUp() {
     parent::setUp();
 
     // Create an administrative user and log it in.
-    $this->adminUser = $this->drupalCreateUser(array('access toolbar', 'access administration pages'));
+    $this->adminUser = $this->drupalCreateUser(['access toolbar', 'access administration pages']);
     $this->drupalLogin($this->adminUser);
   }
 
