Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Hyde\Markdown\Contracts\FrontMatter; |
6 | |
7 | use Hyde\Markdown\Contracts\FrontMatter\SubSchemas\NavigationSchema; |
8 | |
9 | /** |
10 | * @see \Hyde\Pages\Concerns\HydePage |
11 | */ |
12 | interface PageSchema extends FrontMatterSchema |
13 | { |
14 | public const PAGE_SCHEMA = [ |
15 | 'title' => 'string', |
16 | 'description' => 'string', // For <meta name='description'> values. It is used by the automatic page metadata generator, which reads this value from the front matter. |
17 | 'canonicalUrl' => 'string', // While not present in the page data as a property, it is used by the accessor method, which reads this value from the front matter. |
18 | 'navigation' => NavigationSchema::NAVIGATION_SCHEMA, |
19 | ]; |
20 | } |