BreadcrumbComponent
final class BreadcrumbComponent (View source)
Creates application-supplied breadcrumb trails and renders them through the framework's canonical breadcrumb renderer.
Methods
__construct(BreadcrumbRenderer $renderer)
Initializes the component with the renderer shared by views and callers.
empty()
Starts an empty trail so the caller can define its own navigation roots and items.
render(BreadcrumbTrail|null $trail)
Renders a trail or returns an empty string when no trail is available.
string
Details
__construct
__construct(BreadcrumbRenderer $renderer)
Initializes the component with the renderer shared by views and callers.
empty
BreadcrumbTrail
empty()
Starts an empty trail so the caller can define its own navigation roots and items.
render
string
render(BreadcrumbTrail|null $trail)
Renders a trail or returns an empty string when no trail is available.