Skip to content

Kirby 4.5.0

Darkroom::factory()

Creates a new Darkroom instance for the given type/driver

Darkroom::factory(string $type, array $settings = [ ]): object

Parameters

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

Return type

object

Exceptions

Type Description
Exception

Parent class

Kirby\Image\Darkroom