function UserInterface::block
Same name in other branches
- 9 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::block()
- 8.9.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::block()
- 11.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::block()
Blocks the user.
Return value
$this The called user entity.
1 method overrides UserInterface::block()
- User::block in core/
modules/ user/ src/ Entity/ User.php - Blocks the user.
File
-
core/
modules/ user/ src/ UserInterface.php, line 196
Class
- UserInterface
- Provides an interface defining a user entity.
Namespace
Drupal\userCode
public function block();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.