firefly-iii/config/breadcrumbs.php

92 lines
3.1 KiB
PHP
Raw Normal View History

<?php
2018-02-23 09:59:21 -06:00
/**
* breadcrumbs.php
2020-03-17 11:06:30 -05:00
* Copyright (c) 2019 james@firefly-iii.org.
2018-02-23 09:59:21 -06:00
*
* This file is part of Firefly III (https://github.com/firefly-iii).
2018-02-23 09:59:21 -06:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
2018-02-23 09:59:21 -06:00
*
* This program is distributed in the hope that it will be useful,
2018-02-23 09:59:21 -06:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
2018-02-23 09:59:21 -06:00
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2018-02-23 09:59:21 -06:00
*/
2018-05-11 03:08:34 -05:00
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| View Name
|--------------------------------------------------------------------------
|
| Choose a view to display when Breadcrumbs::render() is called.
| Built in templates are:
|
| - 'breadcrumbs::bootstrap4' - Twitter Bootstrap v4
| - 'breadcrumbs::bootstrap3' - Twitter Bootstrap v3
| - 'breadcrumbs::bootstrap2' - Twitter Bootstrap v2
|
| Or a custom view, e.g. '_partials/breadcrumbs'.
|
*/
'view' => sprintf('%s/partials/layout/breadcrumbs', env('FIREFLY_III_LAYOUT', 'v1')),
/*
|--------------------------------------------------------------------------
| Breadcrumbs File(s)
|--------------------------------------------------------------------------
|
| The file(s) where breadcrumbs are defined. e.g.
|
| - base_path('routes/breadcrumbs.php')
| - glob(base_path('breadcrumbs/*.php'))
|
*/
2018-04-02 07:43:06 -05:00
'files' => base_path('routes/breadcrumbs.php'),
/*
|--------------------------------------------------------------------------
| Exceptions
|--------------------------------------------------------------------------
|
| Determine when to throw an exception.
|
*/
// When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException)
2018-04-02 07:43:06 -05:00
'unnamed-route-exception' => true,
// 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)
2018-04-02 07:43:06 -05:00
'invalid-named-breadcrumb-exception' => true,
/*
|--------------------------------------------------------------------------
| Classes
|--------------------------------------------------------------------------
|
| Subclass the default classes for more advanced customisations.
|
*/
// Manager
2018-04-02 07:43:06 -05:00
'manager-class' => DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::class,
// Generator
2018-04-02 07:43:06 -05:00
'generator-class' => DaveJamesMiller\Breadcrumbs\BreadcrumbsGenerator::class,
];