Upgrade to 3.4.3

This commit is contained in:
Bastian Allgeier
2020-09-15 10:25:09 +02:00
parent 54b9ba3047
commit d8e797dd9b
108 changed files with 1750 additions and 523 deletions

View File

@@ -31,6 +31,13 @@ class Section extends Component
public static $types = [];
/**
* Section constructor.
*
* @param string $type
* @param array $attrs
* @throws \Kirby\Exception\InvalidArgumentException
*/
public function __construct(string $type, array $attrs = [])
{
if (isset($attrs['model']) === false) {
@@ -60,6 +67,9 @@ class Section extends Component
return $this->model;
}
/**
* @return array
*/
public function toArray(): array
{
$array = parent::toArray();
@@ -69,6 +79,9 @@ class Section extends Component
return $array;
}
/**
* @return array
*/
public function toResponse(): array
{
return array_merge([