Upgrade to 3.7.2

This commit is contained in:
Bastian Allgeier
2022-07-27 15:34:32 +02:00
parent 1ad1eaf387
commit 833f327139
26 changed files with 204 additions and 66 deletions

View File

@@ -205,6 +205,16 @@ class Block extends Item
return $this->isEmpty() === false;
}
/**
* Returns the sibling collection that filtered by block status
*
* @return \Kirby\Cms\Collection
*/
protected function siblingsCollection()
{
return $this->siblings->filter('isHidden', $this->isHidden());
}
/**
* Returns the block type
*