You are here

public function UserInterface::block in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::block()
  2. 10 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 189

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

public function block();