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