You are here

public function BakeryUserHooks::login in Bakery Single Sign-On System 8.2

File

src/BakeryUserHooks.php, line 44

Class

BakeryUserHooks

Namespace

Drupal\bakery

Code

public function login(UserInterface $account) {
  if ($this
    ->isMain() && $account
    ->id() != 0) {
    $this->kitchen
      ->reBakeChocolateChipCookie($account);
  }
}