Skip to content

Kirby 5.0.4

new Component()

Creates a new component for the given type

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

Parameters

Name Type Default Description
$typerequired string no default value The component type
$attrs array [ ] An array of all passed attributes

Parent class

Kirby\Toolkit\Component