You are here

function rocket_chat_group_group_content_update in Rocket.Chat 8.2

Implements hook_ENTITY_TYPE_update().

Parameters

\Drupal\group\Entity\GroupContent $entity:

File

modules/rocket_chat_group/rocket_chat_group.module, line 36

Code

function rocket_chat_group_group_content_update(Drupal\group\Entity\GroupContent $entity) {
  try {
    moduleHelper::ProcessGroupContentUpdate($entity, "update");
  } catch (InvalidPluginDefinitionException $e) {
    Drupal::messenger()
      ->addError("Something went wrong, please notify the Site Admin");
    Drupal::logger("Rocket Chat : Base Module")
      ->critical($e
      ->getMessage());
  } catch (PluginNotFoundException $e) {
    Drupal::messenger()
      ->addError("Something went wrong, please notify the Site Admin");
    Drupal::logger("Rocket Chat : Base Module")
      ->critical($e
      ->getMessage());
  }
}