protected function UserIsBlocked::doEvaluate in Rules 8.3
Check if user is blocked.
Parameters
\Drupal\user\UserInterface $user: The account to check.
Return value
bool TRUE if the account is blocked.
File
- src/
Plugin/ Condition/ UserIsBlocked.php, line 36
Class
- UserIsBlocked
- Provides a 'User is blocked' condition.
Namespace
Drupal\rules\Plugin\ConditionCode
protected function doEvaluate(UserInterface $user) {
return $user
->isBlocked();
}