| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | trait UsesFlattenedOutputPaths |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Get the route key for the page. |
||
| 23 | * |
||
| 24 | * Uses the identifier basename so nested pages are flattened. |
||
| 25 | */ |
||
| 26 | public function getRouteKey(): string |
||
| 27 | { |
||
| 28 | return unslash(static::outputDirectory().'/'.basename($this->identifier)); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the path where the compiled page will be saved. |
||
| 33 | * |
||
| 34 | * Uses the identifier basename so nested pages are flattened. |
||
| 35 | */ |
||
| 36 | public function getOutputPath(): string |
||
| 39 | } |
||
| 40 | } |
||
| 41 |