Commit 57d2b614 authored by matio89's avatar matio89

Admin toolbar is compatible with 8.0.2

parent 327832e5
......@@ -5,4 +5,3 @@ package: Administration
type: module
dependencies:
- toolbar
- node
\ No newline at end of file
......@@ -19,7 +19,7 @@ function admin_toolbar_toolbar_alter(&$items) {
*
* @see toolbar_prerender_toolbar_administration_tray()
*/
function admin_toolbar_prerender_toolbar_administration_tray(array $element) {
function admin_toolbar_prerender_toolbar_administration_tray(array $element) {
$menu_tree = \Drupal::service('toolbar.menu_tree');
$parameters = new MenuTreeParameters();
$parameters->setRoot('system.admin')->excludeRoot()->setMaxDepth(4)->onlyEnabledLinks();
......@@ -57,7 +57,7 @@ function toolbar_tools_menu_navigation_links(array $tree) {
$url = $link->getUrlObject();
if (!$url->isRouted()) {
// This is an unusual case, so just get a distinct, safe string.
$id = substr(Crypt::hashBase64($url->getUri()), 0, 16);
$id = substr(\Drupal\Component\Utility\Crypt::hashBase64($url->getUri()), 0, 16);
}
else {
$id = str_replace(array('.', '<', '>'), array('-', '', ''), $url->getRouteName());
......
name: Admin Toolbar Extra Tools
core: 8.x
description: Admin Toolbar Extra Tools adds more fonctionalities in the admin menu.
description: Admin Toolbar Extra Tools adds more functionalities in the admin menu.
package: Administration
type: module
dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment