- Issue created by @purencool
- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
avpaderno โ made their first commit to this issueโs fork.
- Merge request !11Issue #3526954: user_is_blocked() was deprecated in Drupal 10.3 โ (Open) created by apaderno
The user_is_blocked function was deprecated in Drupal 10.3. To resolve the issue, use Drupal\user\UserInterface::isBlocked instead.
https://api.drupal.org/api/drupal/core%21modules%21user%21user.module/fu...
../vendor/bin/phpunit -c core ./modules/contrib/bakery/tests/ --group=bakery
@@ -76,8 +77,9 @@ class BakeryService {
* @return bool
* TRUE if the login succeeds, FALSE otherwise.
*/
- public function userExternalLogin(UserInterface $account) {
- if (user_is_blocked($account->getAccountName())) {
+ public function userExternalLogin(UserInterface $account): bool {
+
+ if ($account->isBlocked()) {
// Invalid login.
return FALSE;
Active
3.0
Code
avpaderno โ made their first commit to this issueโs fork.