Skip to content

Kirby 4.5.0

new Component()

Creates a new component for the given type

new Component(string $type, array $attrs = [ ])

Parameters

Name Type Default
$type * string
$attrs array [ ]

Parent class

Kirby\Toolkit\Component