You are here

function groupmenu_group_content_update in Group Menu 8

Implements hook_ENTITY_TYPE_update().

1 call to groupmenu_group_content_update()
groupmenu_group_content_insert in ./groupmenu.module
Implements hook_ENTITY_TYPE_insert().

File

./groupmenu.module, line 266
Gives the ability to create and manage menus for groups.

Code

function groupmenu_group_content_update(EntityInterface $entity) {
  if ($entity
    ->getContentPlugin()
    ->getPluginId() === 'group_menu:menu') {
    \Drupal::service('cache.groupmenu')
      ->invalidateAll();
  }
}