public UserInterface::block()
Blocks the user.
Return value
\Drupal\user\UserInterface The called user entity.
File
- core/modules/user/src/UserInterface.php, line 152
Class
- UserInterface
- Provides an interface defining a user entity.
Namespace
Drupal\user
Code
public function block();
Please login to continue.