Skip to content

Kirby 5.3.3

$content->get()

Returns either a single field object or all registered fields

$content->get(string|null $key = null): Kirby\Content\Field|array

Parameters

Name Type Default
$key stringornull null

Return types

Kirby\Content\Fieldorarray

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

Parent class

Kirby\Content\Content