Skip to content

Kirby 5.0.4

$options->append()

Appends an element to the data array

$options->append(string|Kirby\Option\Option ...$args): Kirby\Option\Options

Parameters

Name Type Default
...$args stringorKirby\Option\Option no default value

Return type

Kirby\Option\Options

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

Parent class

Kirby\Option\Options inherited from Kirby\Cms\Collection

Examples

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