function UserLazyBuilder::__construct

Constructs an UserLazyBuilder object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\Core\Session\AccountProxyInterface $account: The current user.

File

core/modules/navigation/src/UserLazyBuilder.php, line 30

Class

UserLazyBuilder
User navigation block lazy builder.

Namespace

Drupal\navigation

Code

public function __construct(protected readonly ModuleHandlerInterface $moduleHandler, protected readonly AccountProxyInterface $account) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.