Skip to content

Commit

Permalink
feat(SHS-5905): Add custom contextual link
Browse files Browse the repository at this point in the history
  • Loading branch information
codechefmarc committed Nov 7, 2024
1 parent 16f4bc8 commit 7072e1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ hs_blocks.block_move_down:
class: ['use-ajax']
# data-dialog-type: dialog
# data-dialog-renderer: off_canvas

hs_blocks.social_media_block:
title: Edit Social Media Block
route_name: entity.block.edit_form
group: 'social_media_block'
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function su_humsci_profile_contextual_links_alter(array &$links, $group, array $
}

if (
!in_array($group, ['media', 'block_content']) &&
!in_array($group, ['media', 'block_content', 'social_media_block']) &&
!$current_user->hasPermission('view all contextual links')
) {
$links = [];
Expand Down

0 comments on commit 7072e1e

Please sign in to comment.