\Charcoal\App\TemplateWidgetBuilder

Build widgets from config, with a WidgetFactory

Summary

Methods
Properties
Constants
__construct()
build()
No public properties found
No constants found
No protected methods found
$factory
$container
N/A
No private methods found
No private properties found
N/A

Properties

$factory

$factory : \Charcoal\Factory\FactoryInterface

Type

\Charcoal\Factory\FactoryInterface

$container

$container : \Pimple\Container

A Pimple dependency-injection container to fulfill the required services.

Type

\Pimple\Container

Methods

__construct()

__construct(\Charcoal\Factory\FactoryInterface  $factory, \Pimple\Container  $container) 

Parameters

\Charcoal\Factory\FactoryInterface $factory

An object factory.

\Pimple\Container $container

The DI container.

build()

build(array|\ArrayAccess  $options) : \Charcoal\App\Template\WidgetInterface

Parameters

array|\ArrayAccess $options

The form group build options / config.

Throws

\InvalidArgumentException

If the widget is invalid.

Returns

\Charcoal\App\Template\WidgetInterface

The "built" widget object.