class NavigationLink extends Component (View source)

Methods

static NavigationLink
make()

No description

onlyWhen(Closure $closure)

No description

withAttributes(array $attributes)

No description

title(Stringable|string $title)

No description

forRoute(string $route, array $routeArguments = [])

No description

array
getRouteArguments()

No description

bool
shouldShow()

No description

doNotAddSelfAsFirstChild(bool $doNotAddSelfAsFirstChild = true)

No description

forModule(string $module, string|null $action = null)

No description

forSingleton(string $module)

No description

toExternalUrl(string $href)

No description

setChildren(array $links)

No description

shouldOpenInNewWindow(bool $shouldOpenInNewWindow = true)

No description

array
getChildren()

No description

string
getModuleRoute(string $moduleName, string|null $action = null)

No description

string|null
getRoute()

No description

string
getHref()

No description

bool
isActive()

No description

string
getTitle()

No description

bool
hasActiveChild()

No description

bool
isTargetBlank()

No description

View
render(string $class = 'header__item')

No description

Details

static NavigationLink make()

No description

Return Value

NavigationLink

NavigationLink onlyWhen(Closure $closure)

No description

Parameters

Closure $closure

Return Value

NavigationLink

NavigationLink withAttributes(array $attributes)

No description

Parameters

array $attributes

Return Value

NavigationLink

NavigationLink title(Stringable|string $title)

No description

Parameters

Stringable|string $title

Return Value

NavigationLink

NavigationLink forRoute(string $route, array $routeArguments = [])

No description

Parameters

string $route
array $routeArguments

Return Value

NavigationLink

array getRouteArguments()

No description

Return Value

array

bool shouldShow()

No description

Return Value

bool

NavigationLink doNotAddSelfAsFirstChild(bool $doNotAddSelfAsFirstChild = true)

No description

Parameters

bool $doNotAddSelfAsFirstChild

Return Value

NavigationLink

NavigationLink forModule(string $module, string|null $action = null)

No description

Parameters

string $module
string|null $action

Return Value

NavigationLink

NavigationLink forSingleton(string $module)

No description

Parameters

string $module

Return Value

NavigationLink

NavigationLink toExternalUrl(string $href)

No description

Parameters

string $href

Return Value

NavigationLink

NavigationLink setChildren(array $links)

No description

Parameters

array $links

Return Value

NavigationLink

NavigationLink shouldOpenInNewWindow(bool $shouldOpenInNewWindow = true)

No description

Parameters

bool $shouldOpenInNewWindow

Return Value

NavigationLink

array getChildren()

No description

Return Value

array

protected string getModuleRoute(string $moduleName, string|null $action = null)

No description

Parameters

string $moduleName
string|null $action

Return Value

string

protected string|null getRoute()

No description

Return Value

string|null

protected string getHref()

No description

Return Value

string

bool isActive()

No description

Return Value

bool

string getTitle()

No description

Return Value

string

protected bool hasActiveChild()

No description

Return Value

bool

protected bool isTargetBlank()

No description

Return Value

bool

View render(string $class = 'header__item')

No description

Parameters

string $class

Return Value

View