- First commit to issue fork.
Dropdown of Admin Toolbar fails because the admin_toolbar.js is deferred due deprecated code in Drupal 9.3.
Drupal 9.3 with Admin Toolbar module.
The dropdown menu is not available.
The problem is in this file:
advagg/advagg_mod/src/Asset/DeferJs.php
// Admin Toolbar 8x fails when deferred.
if ($this->moduleHandler->moduleExists('admin_toolbar')) {
$this->skipList[] = Crypt::hashBase64(drupal_get_path('module', 'admin_toolbar') . '/js/admin_toolbar.js' . $this->counter);
}
}
View: bootstrap.inc/function/drupal_get_path/9.3.x
Deprecated
in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.
// Admin Toolbar 8x fails when deferred.
if ($this->moduleHandler->moduleExists('admin_toolbar')) {
- $this->skipList[] = Crypt::hashBase64(drupal_get_path('module', 'admin_toolbar') . '/js/admin_toolbar.js' . $this->counter);
+ $this->skipList[] = Crypt::hashBase64(\Drupal\Core\Extension\ExtensionPathResolver::getPath('module', 'admin_toolbar') . '/js/admin_toolbar.js' . $this->counter);
}
}
Active
4.0
Modifier
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.