|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +return [ |
| 6 | + |
| 7 | + /* |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | View Name |
| 10 | + |-------------------------------------------------------------------------- |
| 11 | + | |
| 12 | + | Choose a view to display when Breadcrumbs::render() is called. |
| 13 | + | Built in templates are: |
| 14 | + | |
| 15 | + | - 'breadcrumbs::bootstrap5' - Bootstrap 5 |
| 16 | + | - 'breadcrumbs::bootstrap4' - Bootstrap 4 |
| 17 | + | - 'breadcrumbs::bulma' - Bulma |
| 18 | + | - 'breadcrumbs::foundation6' - Foundation 6 |
| 19 | + | - 'breadcrumbs::json-ld' - JSON-LD Structured Data |
| 20 | + | - 'breadcrumbs::materialize' - Materialize |
| 21 | + | - 'breadcrumbs::tailwind' - Tailwind CSS |
| 22 | + | - 'breadcrumbs::uikit' - UIkit |
| 23 | + | |
| 24 | + | Or a custom view, e.g. '_partials/breadcrumbs'. |
| 25 | + | |
| 26 | + */ |
| 27 | + |
| 28 | + 'view' => 'breadcrumbs::tailwind', |
| 29 | + |
| 30 | + /* |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | Breadcrumbs File(s) |
| 33 | + |-------------------------------------------------------------------------- |
| 34 | + | |
| 35 | + | The file(s) where breadcrumbs are defined. e.g. |
| 36 | + | |
| 37 | + | - base_path('routes/breadcrumbs.php') |
| 38 | + | - glob(base_path('breadcrumbs/*.php')) |
| 39 | + | |
| 40 | + */ |
| 41 | + |
| 42 | + 'files' => base_path('routes/breadcrumbs/breadcrumbs.php'), |
| 43 | + |
| 44 | + /* |
| 45 | + |-------------------------------------------------------------------------- |
| 46 | + | Exceptions |
| 47 | + |-------------------------------------------------------------------------- |
| 48 | + | |
| 49 | + | Determine when to throw an exception. |
| 50 | + | |
| 51 | + */ |
| 52 | + |
| 53 | + // When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException) |
| 54 | + 'unnamed-route-exception' => true, |
| 55 | + |
| 56 | + // When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException) |
| 57 | + 'missing-route-bound-breadcrumb-exception' => true, |
| 58 | + |
| 59 | + // When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException) |
| 60 | + 'invalid-named-breadcrumb-exception' => true, |
| 61 | + |
| 62 | + /* |
| 63 | + |-------------------------------------------------------------------------- |
| 64 | + | Classes |
| 65 | + |-------------------------------------------------------------------------- |
| 66 | + | |
| 67 | + | Subclass the default classes for more advanced customisations. |
| 68 | + | |
| 69 | + */ |
| 70 | + |
| 71 | + // Manager |
| 72 | + 'manager-class' => Diglactic\Breadcrumbs\Manager::class, |
| 73 | + |
| 74 | + // Generator |
| 75 | + 'generator-class' => Diglactic\Breadcrumbs\Generator::class, |
| 76 | + |
| 77 | +]; |
0 commit comments