public function LoginTobogganloggedBlock::build in LoginToboggan 8
Implements \Drupal\block\BlockBase::blockBuild().
Overrides BlockPluginInterface::build
File
- src/
Plugin/ Block/ LoginTobogganloggedBlock.php, line 74
Class
- LoginTobogganloggedBlock
- Provides a 'LoginToboggan logged' block.
Namespace
Drupal\logintoboggan\Plugin\BlockCode
public function build() {
$user = $this->account;
$page = [
'#theme' => 'lt_loggedinblock',
'#account' => $user,
'#cache' => [
'max-age' => 0,
],
];
return $page;
}