Skip to content

Kirby 6.0.0

$areas->add()

Adds a single object or an entire second collection to the current collection

$areas->add(Collection|Area $object): Areas

Parameters

Name Type Default
$objectrequired Kirby\Cms\Collection<Kirby\Panel\Area>orKirby\Panel\Area no default value

Return type

Kirby\Panel\Areas

This method modifies the existing $areas object it is applied to and returns it again.

Parent class

Kirby\Panel\Areas inherited from Kirby\Cms\Collection