Alter core "Configure Block" contextual link path or text? 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.
I was able to accomplish this for Panels by using the following:

/**
 * Implements preprocess_panels_pane().
 */
function hook_preprocess_panels_pane(&amp;$vars) {  
  if ($vars['pane']-&gt;type == 'panels_mini') {
    unset($vars['admin_links']);
    $vars['admin_links'] = '';
  } 

  // Load the currently logged in user.
  global $user;

  if ($vars['pane']-&gt;type == 'block') { 

    // Check if content array is set
    $type = isset(array_keys($vars['content'])[0]) ? array_keys($vars['content'])[0] : '';

    // Check if the pane subtype is a bean
    if (strpos($vars['pane']-&gt;subtype, 'bean-') !== false) {

      // Get path of bean edit link
      $path = isset(array_keys($vars['content']['bean'])[0]) ? array_keys($vars['content']['bean'])[0] : '';
      unset($vars['admin_links']);

      // Check if the user has the 'administrator' or 'content editor' role.
      if (in_array('administrator', $user-&gt;roles)) {
        $vars['admin_links'] = '&lt;div class="contextual-links-wrapper"&gt;&lt;ul class="contextual-links"&gt;&lt;li class="bean-  last"&gt;&lt;a href="/block/' . $path . '/edit?destination="&gt;Edit Block&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;';     
      } else {
        $vars['admin_links'] = '';
      }     
    }         
  }
}