Skip to content

Kirby 4.5.0

$languages->data()

Getter and setter for the data

$languages->data(?array $data = null): array|Kirby\Cms\Languages

Parameters

Name Type Default
$data array|null null

Return type

array|Kirby\Cms\Languages

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

Parent class

Kirby\Cms\Languages inherited from Kirby\Toolkit\Collection