ldc-boutique-cnc-sable/config/breadcrumbs.php

82 lines
2.6 KiB
PHP
Raw Permalink Normal View History

<?php
2026-06-14 21:32:07 +02:00
declare(strict_types=1);
2026-06-14 21:32:07 +02:00
use Diglactic\Breadcrumbs\Generator;
use Diglactic\Breadcrumbs\Manager;
2026-06-14 21:32:07 +02:00
return [
2026-06-14 21:32:07 +02:00
/**
* |--------------------------------------------------------------------------
* | View Name
* |--------------------------------------------------------------------------
* |
* | Choose a view to display when Breadcrumbs::render() is called.
* | Built in templates are:
* |
* | - 'breadcrumbs::bootstrap5' - Bootstrap 5
* | - 'breadcrumbs::bootstrap4' - Bootstrap 4
* | - 'breadcrumbs::bulma' - Bulma
* | - 'breadcrumbs::foundation6' - Foundation 6
* | - 'breadcrumbs::json-ld' - JSON-LD Structured Data
* | - 'breadcrumbs::materialize' - Materialize
* | - 'breadcrumbs::tailwind' - Tailwind CSS
* | - 'breadcrumbs::uikit' - UIkit
* |
* | Or a custom view, e.g. '_partials/breadcrumbs'.
* |
*/
'view' => 'fo/modules/breadcrumb/breadcrumb-layout',
2026-06-14 21:32:07 +02:00
/**
* |--------------------------------------------------------------------------
* | Breadcrumbs File(s)
* |--------------------------------------------------------------------------
* |
* | The file(s) where breadcrumbs are defined. e.g.
* |
* | - base_path('routes/breadcrumbs.php')
* | - glob(base_path('breadcrumbs/*.php'))
* |
*/
'files' => [
base_path('routes/breadcrumbs-bo.php'),
base_path('routes/breadcrumbs-fo.php'),
],
2026-06-14 21:32:07 +02:00
/**
* |--------------------------------------------------------------------------
* | Exceptions
* |--------------------------------------------------------------------------
* |
* | Determine when to throw an exception.
* |
*/
2026-06-14 21:32:07 +02:00
// * When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException)
'unnamed-route-exception' => true,
2026-06-14 21:32:07 +02:00
// * When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException)
'missing-route-bound-breadcrumb-exception' => true,
2026-06-14 21:32:07 +02:00
// * When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException)
'invalid-named-breadcrumb-exception' => true,
2026-06-14 21:32:07 +02:00
/**
* |--------------------------------------------------------------------------
* | Classes
* |--------------------------------------------------------------------------
* |
* | Subclass the default classes for more advanced customisations.
* |
*/
2026-06-14 21:32:07 +02:00
// * Manager
'manager-class' => Manager::class,
2026-06-14 21:32:07 +02:00
// * Generator
'generator-class' => Generator::class,
];