You are here

function group_test_user_update in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/modules/group_test/group_test.module \group_test_user_update()

Implements hook_ENTITY_TYPE_update().

File

tests/modules/group_test/group_test.module, line 13
Helper module for the Group tests.

Code

function group_test_user_update(UserInterface $user) {
  if ($user
    ->getChangedTime() == 123456789) {
    $user
      ->setChangedTime(530496000)
      ->save();
  }
}