Breadcrumb
The breadcrumb
functions returns the \Anomaly\Streams\Platform\Ui\Breadcrumb\BreadcrumbCollection
.
You can use this function to automatically generate a Bootstrap 3/4 breadcrumb:
{{ breadcrumb() }} // Returns Bootstrap breadcrumb
You can use the same function to generate your own breadcrumb:
<ol class="breadcrumb">
{% for breadcrumb, url in breadcrumb() %}
{% if loop.last %}
<li class="breadcrumb-item active">{{ trans(breadcrumb) }}</li>
{% else %}
<li class="breadcrumb-item"><a href="{{ url }}">{{ trans(breadcrumb) }}</a></li>
{% endif %}
{% endfor %}
</ol>