- π¨π¦Canada nedjo
While this is a regression for some sites, it results from changes in π contextual links for entity view Fixed that benefitted other sites or use cases and at this point is unlikely to be rolled back. Hence marking won't fix.
One option to restore the previous behaviour without patching is to implement
hook_block_view_alter()
in a custom module:/** * Implements hook_block_view_alter(). * * Conditionally adds contextual links. * * @see https://www.drupal.org/project/bean/issues/2991960 */ function mymodule_block_view_alter(&$data, $block) { if (!module_exists('contextual')) { return; } $bean = bean_load_delta($block->delta); $bean_is_viewable = entity_access('view', 'bean', $bean) && $bean; $block_has_content = !empty($data['content']); if ($bean_is_viewable && $block_has_content) { $data['content']['#contextual_links']['bean'] = [ 'block', [$bean->Identifier(), 'edit'] ]; } }