Added hook so as not to show empty contextual menu

This commit is contained in:
naomi
2018-05-07 19:20:09 +02:00
parent a43aa0dc08
commit 1786fce0e8
2 changed files with 31 additions and 1 deletions

View File

@ -10,8 +10,11 @@ use Drupal\opencase\Utils;
/**
* Provides a 'ContextualMenu' block.
*
* Displays contextual links on certain pages.
* The block is forbidden by hook_block_access on other pages, so if more are added they need adding there too.
*
* @Block(
* id = "contextual_menu",
* id = "opencase_contextual_menu",
* admin_label = @Translation("OpenCase Contextual Menu"),
* )
*/