Hi,
I’m working with the code from this tutorial from the website.
But when i update my project to kirby4 the isDraft function is not working. It’s not possible to create a new item when i override this function.
I think the $this->content() causes troubles at that point. Any one know how to fix this so that i can still use draft/unlisted/listed in my project.
public function isDraft(): bool
{
return in_array($this->content()->status(), ['listed', 'unlisted']) === false;
}