2017-12-23 13:46:52 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2021-05-24 05:40:39 -05:00
|
|
|
|
2017-12-23 13:46:52 -06:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| View Name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Choose a view to display when Breadcrumbs::render() is called.
|
|
|
|
| Built in templates are:
|
|
|
|
|
|
2021-05-24 05:40:39 -05:00
|
|
|
| - 'breadcrumbs::bootstrap5' - Bootstrap 5
|
|
|
|
| - 'breadcrumbs::bootstrap4' - Bootstrap 4
|
|
|
|
| - 'breadcrumbs::bootstrap3' - Bootstrap 3
|
|
|
|
| - 'breadcrumbs::bootstrap2' - Bootstrap 2
|
|
|
|
| - 'breadcrumbs::bulma' - Bulma
|
|
|
|
| - 'breadcrumbs::foundation6' - Foundation 6
|
|
|
|
| - 'breadcrumbs::json-ld' - JSON-LD Structured Data
|
|
|
|
| - 'breadcrumbs::materialize' - Materialize
|
|
|
|
| - 'breadcrumbs::tailwind' - Tailwind CSS
|
|
|
|
| - 'breadcrumbs::uikit' - UIkit
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
|
| Or a custom view, e.g. '_partials/breadcrumbs'.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-01-31 13:29:17 -06:00
|
|
|
'view' => sprintf('%s/partials/layout/breadcrumbs', env('FIREFLY_III_LAYOUT', 'v1')),
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Breadcrumbs File(s)
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The file(s) where breadcrumbs are defined. e.g.
|
|
|
|
|
|
|
|
|
| - base_path('routes/breadcrumbs.php')
|
|
|
|
| - glob(base_path('breadcrumbs/*.php'))
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-05-24 05:40:39 -05:00
|
|
|
'files' => base_path('routes/breadcrumbs.php'),
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Exceptions
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Determine when to throw an exception.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException)
|
2021-05-24 05:40:39 -05:00
|
|
|
'unnamed-route-exception' => true,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
// When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException)
|
|
|
|
'missing-route-bound-breadcrumb-exception' => true,
|
|
|
|
|
|
|
|
// When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException)
|
2021-05-24 05:40:39 -05:00
|
|
|
'invalid-named-breadcrumb-exception' => true,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Classes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Subclass the default classes for more advanced customisations.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Manager
|
2021-05-24 05:40:39 -05:00
|
|
|
'manager-class' => Diglactic\Breadcrumbs\Manager::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
// Generator
|
2021-05-24 05:40:39 -05:00
|
|
|
'generator-class' => Diglactic\Breadcrumbs\Generator::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
|
|
|
];
|