This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\user\Entity\User; | |
// Updating a user is a three step process: | |
// 1) load the user object to change | |
// 2) set property/field to new value | |
// 3) Save the user object. | |
// This example updates: | |
// 1) password |