This commit is contained in:
Bastian Allgeier
2019-01-14 10:52:45 +01:00
parent 01277f79f2
commit 8070893b64
22 changed files with 482 additions and 351 deletions

View File

@@ -91,11 +91,11 @@ trait HasChildren
}
/**
* Return all drafts for the site
* Return all drafts of the model
*
* @return Pages
*/
public function drafts(): Pages
public function drafts()
{
if (is_a($this->drafts, 'Kirby\Cms\Pages') === true) {
return $this->drafts;