We're using blocks and Beans throughout a very large site. The issue is that the contextual links have "Configure Block" which takes you to the block configuration page for that particular block, and another contextual links labeled "Edit Block".
The "Edit Block" link is the correct link as it brings the user to the Bean admin page for that block with fields and settings.
I'm not able to find the hook to alter that main "Configure Block" link or text.
I've tried:
hook_menu_link_alter() hook_contextual_links_view_alter() hook_menu_contextual_links_alter() hook_block_view_alter()
None of these seem to expose the "Configure Block" text or URL.
I've also tried the Custom Contextual Link module, but it doesn't allow you to edit or remove this link.
I am not interested in hiding it with styling. That isn't fixing the problem. I want to programmatically alter that one contextual link.