Links
Table of Contents
- $links : array<string|int, mixed>
- List of links.
- $partialLinks : array<string|int, mixed>
- List of partial links.
- addLink() : $this
- Add a link to navigation menu.
- blockHideLink() : $this
- Block and hide a link.
- blockLink() : $this
- Block a link.
- blockPartialLink() : $this
- Block a partial link.
- headerHasNavs() : bool
- Check if header has navs to show.
- isBlocked() : bool
- Check if link is blocked.
- isHided() : bool
- Check if link is hide.
- unBlockLink() : $this
- Unblock a link.
- unBlockPartialLink() : $this
- Unblock a partial link.
- block() : self
- Block a link.
Properties
$links
List of links.
protected
array<string|int, mixed>
$links
= []
$partialLinks
List of partial links.
protected
array<string|int, mixed>
$partialLinks
= []
Methods
addLink()
Add a link to navigation menu.
public
addLink(string $link) : $this
Parameters
- $link : string
Return values
$this —blockHideLink()
Block and hide a link.
public
blockHideLink(string $link) : $this
Parameters
- $link : string
Return values
$this —blockLink()
Block a link.
public
blockLink(string $link) : $this
Parameters
- $link : string
Return values
$this —blockPartialLink()
Block a partial link.
public
blockPartialLink(string $link) : $this
Parameters
- $link : string
Return values
$this —headerHasNavs()
Check if header has navs to show.
public
headerHasNavs(string $label) : bool
Parameters
- $label : string
Return values
bool —isBlocked()
Check if link is blocked.
public
isBlocked(string $link) : bool
Parameters
- $link : string
Return values
bool —isHided()
Check if link is hide.
public
isHided(string $link) : bool
Parameters
- $link : string
Return values
bool —unBlockLink()
Unblock a link.
public
unBlockLink(string $link) : $this
Parameters
- $link : string
Return values
$this —unBlockPartialLink()
Unblock a partial link.
public
unBlockPartialLink(string $link) : $this
Parameters
- $link : string
Return values
$this —block()
Block a link.
protected
block(string $link, array<string|int, mixed> $options) : self
Parameters
- $link : string
- $options : array<string|int, mixed>