Skip to content

$layoutcolumns->set()

Adds a new element to the collection

$layoutcolumns->set(mixed $key, mixed $value = null): Kirby\Cms\LayoutColumns

Parameters

Name Type Default Description
$key * mixed string or array
$value mixed null

Return type

Kirby\Cms\LayoutColumns

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

Parent class

Kirby\Cms\LayoutColumns inherited from Kirby\Toolkit\Collection