public User::activate()
Activates the user.
Return value
\Drupal\user\UserInterface The called user entity.
Overrides UserInterface::activate
File
- core/modules/user/src/Entity/User.php, line 288
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\Entity
Code
public function activate() { $this->get('status')->value = 1; return $this; }
Please login to continue.