| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-23 16:59:21 +01:00
										 |  |  | /** | 
					
						
							|  |  |  |  * breadcrumbs.php | 
					
						
							| 
									
										
										
										
											2020-03-17 16:06:30 +00:00
										 |  |  |  * Copyright (c) 2019 james@firefly-iii.org. | 
					
						
							| 
									
										
										
										
											2018-02-23 16:59:21 +01:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * This file is part of Firefly III (https://github.com/firefly-iii). | 
					
						
							| 
									
										
										
										
											2018-02-23 16:59:21 +01:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02: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 16:59:21 +01:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							| 
									
										
										
										
											2018-02-23 16:59:21 +01:00
										 |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02:00
										 |  |  |  * GNU Affero General Public License for more details. | 
					
						
							| 
									
										
										
										
											2018-02-23 16:59:21 +01:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2019-10-02 06:38:00 +02: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 16:59:21 +01:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-11 10:08:34 +02:00
										 |  |  | declare(strict_types=1); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 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'. | 
					
						
							|  |  |  |     | | 
					
						
							|  |  |  |     */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-31 20:29:17 +01:00
										 |  |  |     'view' => sprintf('%s/partials/layout/breadcrumbs', env('FIREFLY_III_LAYOUT', 'v1')), | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /* | 
					
						
							|  |  |  |     |-------------------------------------------------------------------------- | 
					
						
							|  |  |  |     | 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 14:43:06 +02:00
										 |  |  |     'files'                                    => base_path('routes/breadcrumbs.php'), | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /* | 
					
						
							|  |  |  |     |-------------------------------------------------------------------------- | 
					
						
							|  |  |  |     | 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 14:43:06 +02:00
										 |  |  |     'unnamed-route-exception'                  => true, | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01: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)
 | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |     'invalid-named-breadcrumb-exception'       => true, | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /* | 
					
						
							|  |  |  |     |-------------------------------------------------------------------------- | 
					
						
							|  |  |  |     | Classes | 
					
						
							|  |  |  |     |-------------------------------------------------------------------------- | 
					
						
							|  |  |  |     | | 
					
						
							|  |  |  |     | Subclass the default classes for more advanced customisations. | 
					
						
							|  |  |  |     | | 
					
						
							|  |  |  |     */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Manager
 | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |     'manager-class'                            => DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::class, | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // Generator
 | 
					
						
							| 
									
										
										
										
											2018-04-02 14:43:06 +02:00
										 |  |  |     'generator-class'                          => DaveJamesMiller\Breadcrumbs\BreadcrumbsGenerator::class, | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | ]; |