BreadcrumbItem
final class BreadcrumbItem (View source)
Stores one caller-owned breadcrumb label and its optional navigable URL.
Methods
__construct(string $label, string|null $url = null)
Initializes the immutable label and optional URL displayed by a trail.
label()
Returns the already-localized label supplied by the caller.
string
url()
Returns the caller-provided URL or null when the item is not navigable.
string|null
Details
__construct
__construct(string $label, string|null $url = null)
Initializes the immutable label and optional URL displayed by a trail.
label
string
label()
Returns the already-localized label supplied by the caller.
url
string|null
url()
Returns the caller-provided URL or null when the item is not navigable.