function user_revision_user_prepare_form in User Revision 8
Implements hook_ENTITY_TYPE_prepare_form() for user entities.
File
- ./
user_revision.module, line 109 - User Revision module.
Code
function user_revision_user_prepare_form(UserInterface $user, $operation, FormStateInterface $form_state) {
if (!$user
->isNew()) {
// Remove the revision log message from the original user entity.
$user->revision_log = NULL;
}
}