Problem/Motivation

Port the User presave hook to Drupal 9

Comments

binnythomas created an issue. See original summary.

  • binnythomas committed 2fa9331 on 1.0.x
    Issue #3312052 by binnythomas: Port User presave function to Drupal 9
    
rogerbinny’s picture

In Drupal 9 user_presave is replaced by hook_ENTITY_presave and as the $edit parameter is no longer available we need to set the values in user.data service and retrieve it user_presave using set and get methods. However user_presave is called before the form submit handler.

binnythomas’s picture

Status: Active » Fixed
keshavv’s picture

Status: Fixed » Closed (fixed)