ldc-legaulois/config/breadcrumbs.php

82 lines
2.6 KiB
PHP
Raw Permalink Normal View History

2021-02-24 10:54:36 +01:00
<?php
2026-09-25 16:25:31 +02:00
use Diglactic\Breadcrumbs\Generator;
use Diglactic\Breadcrumbs\Manager;
2021-02-24 10:54:36 +01:00
return [
/*
2022-02-10 16:14:58 +01: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'.
|
2026-09-25 16:25:31 +02:00
*/
2021-02-24 10:54:36 +01:00
2024-01-10 14:49:46 +01:00
'view' => 'modules/breadcrumbs/breadcrumb-layout',
2021-02-24 10:54:36 +01:00
/*
2022-02-10 16:14:58 +01:00
|--------------------------------------------------------------------------
| Breadcrumbs File(s)
|--------------------------------------------------------------------------
|
| The file(s) where breadcrumbs are defined. e.g.
|
| - base_path('routes/breadcrumbs.php')
| - glob(base_path('breadcrumbs/*.php'))
|
2026-09-25 16:25:31 +02:00
*/
2021-02-24 10:54:36 +01:00
2024-01-10 14:49:46 +01:00
'files' => [
base_path('routes/breadcrumbs-bo.php'),
base_path('routes/breadcrumbs-fo.php'),
],
2021-02-24 10:54:36 +01:00
/*
2022-02-10 16:14:58 +01:00
|--------------------------------------------------------------------------
| Exceptions
|--------------------------------------------------------------------------
|
| Determine when to throw an exception.
|
2026-09-25 16:25:31 +02:00
*/
2021-02-24 10:54:36 +01:00
2024-01-10 14:49:46 +01:00
// * When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException)
2021-02-24 10:54:36 +01:00
'unnamed-route-exception' => true,
2024-01-10 14:49:46 +01:00
// * When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException)
2021-02-24 10:54:36 +01:00
'missing-route-bound-breadcrumb-exception' => true,
2024-01-10 14:49:46 +01:00
// * When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException)
2021-02-24 10:54:36 +01:00
'invalid-named-breadcrumb-exception' => true,
/*
2022-02-10 16:14:58 +01:00
|--------------------------------------------------------------------------
| Classes
|--------------------------------------------------------------------------
|
| Subclass the default classes for more advanced customisations.
|
2026-09-25 16:25:31 +02:00
*/
2021-02-24 10:54:36 +01:00
2024-01-10 14:49:46 +01:00
// * Manager
2026-09-25 16:25:31 +02:00
'manager-class' => Manager::class,
2021-02-24 10:54:36 +01:00
2024-01-10 14:49:46 +01:00
// * Generator
2026-09-25 16:25:31 +02:00
'generator-class' => Generator::class,
2021-02-24 10:54:36 +01:00
];