Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
UserInterface.php
function 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\user
Code
public
function
block
();
RSS feed