Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
admin_toolbar_links_access_filter_admin_block_content
should be
admin_toolbar_links_access_filter_preprocess_admin_block_content
No admin blocks currently get their access fixed when viewing config pages etc.
Comment | File | Size | Author |
---|---|---|---|
#4 | admin_toolbar-remove_admin_block_content-3026731-4-d8.patch | 1.91 KB | romainj |
admin_toolbar__preprocess-patch.patch | 902 bytes | almunnings | |
|
Comments
Comment #2
almunningsComment #3
idebr CreditAttribution: idebr at ezCompany commentedThis code was copied over in #2919346: Don't show menu links that you don't have access permission for, but I am not sure this hook is even necessary. The links in admin_block_content are already being filtered in
\Drupal\system\Controller\SystemController::overview()
through MenuTreeManipulators:Perhaps you can provide a failing test that shows this code is actually still necessary?
Comment #4
romainj CreditAttribution: romainj as a volunteer commentedI agree with @idebr that function is not even necessary. Here is the corresponding patch.
Comment #5
adriancidComment #8
adriancid