Commit 865a4d8a authored by JKerschner's avatar JKerschner Committed by adriancid

Issue #2989281 by JKerschner, adriancid: Consistently use $entityTypeManager

parent 62f41ed1
......@@ -2,6 +2,7 @@ Admin Toolbar 8.x-1.25, 2018-XX-XX
----------------------------------
Changes since 8.x-1.24:
- #2989281 by JKerschner, adriancid: Consistently use $entityTypeManager.
- #2985106 by Eli-T, adriancid, eme: Add ability to hide Drupal.org links
exposed by admin_toolbar_tools from certain users.
- #2938884 by Spurlos, bdanin, romainj, purdy_nc, adriancid: A non-existent
......
......@@ -566,7 +566,7 @@ function admin_toolbar_tools_menu_links_discovered_alter(&$links) {
'parent' => 'system.admin_content',
];
// Add node links for each media type.
foreach (\Drupal::entityTypeManager()->getStorage('media_type')->loadMultiple() as $type) {
foreach ($entityTypeManager->getStorage('media_type')->loadMultiple() as $type) {
$links['media.add.' . $type->id()] = [
'title' => t($type->label()),
'route_name' => 'entity.media.add_form',
......
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