Skip to content

Kirby 6.0.0

$areas->append()

Appends an element to the data array

$areas->append(string|Area ...$args): Areas

Parameters

Name Type Default
...$args stringorKirby\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

Examples

$collection->append($object);
$collection->append('key', $object);