Commit 7c29d381 authored by idebr's avatar idebr Committed by adriancid

Issue #2996485 by idebr, adriancid: Remove unused function admin_toolbar_tools_get_links()

parent 865a4d8a
......@@ -2,6 +2,8 @@ Admin Toolbar 8.x-1.25, 2018-XX-XX
----------------------------------
Changes since 8.x-1.24:
- #2996485 by idebr, adriancid: Remove unused function
admin_toolbar_tools_get_links().
- #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.
......
......@@ -613,20 +613,3 @@ function admin_toolbar_tools_installed_themes() {
return $themes_installed;
}
/**
* Get all links related to entity.
*
* @param string $entity_type_id
* The machine name for the entity type.
*
* @return array
* The links for the entity type.
*/
function admin_toolbar_tools_get_links($entity_type_id) {
$entity = \Drupal::entityTypeManager()->getDefinition($entity_type_id);
// Get all links related to entity.
$links = $entity->getLinkTemplates();
return $links;
}
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