Skip to content

Commit

Permalink
Merge pull request #764 from hydephp/support-meta-fields-as-canonical…
Browse files Browse the repository at this point in the history
…-publication-fields

Support meta fields as canonical publication fields
  • Loading branch information
caendesilva authored Dec 18, 2022
2 parents 166baff + 9095508 commit 3e9ef1c
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ public function testCreate()
', file_get_contents(Hyde::path('test-publication/hello-world.md')));
}

protected function makePublicationType(): PublicationType
protected function makePublicationType(array $fields = [
[
'type' => 'string',
'name' => 'title',
'min' => 0,
'max' => 128,
],
]): PublicationType
{
return new PublicationType(
'test',
'title',
fields: [
[
'type' => 'string',
'name' => 'title',
'min' => 0,
'max' => 128,
],
],
fields: $fields,
directory: 'test-publication',
);
}
Expand Down

0 comments on commit 3e9ef1c

Please sign in to comment.