final class NavigationVisibility (View source)

Decides once per request which navigation entries the current user gets, so the two theme headers and the dashboard share one rule per entry.

Methods

static array
build(callable $can, ConfigurationInterface $config, bool $hasModuleItems, bool $changeRequestsAvailable = true)

No description

Details

static array build(callable $can, ConfigurationInterface $config, bool $hasModuleItems, bool $changeRequestsAvailable = true)

No description

Parameters

callable $can

Permission check for the current user

ConfigurationInterface $config
bool $hasModuleItems

Whether any module contributes a Tools entry

bool $changeRequestsAvailable

False while the change requests table does not exist

Return Value

array