Overview

Namespaces

  • Charcoal
    • App
      • Action
      • Config
      • Handler
      • Middleware
      • Module
      • Route
      • Script
      • ServiceProvider
      • Template

Classes

  • AbstractTemplate
  • AbstractWidget
  • WidgetBuilder

Interfaces

  • TemplateInterface
  • WidgetInterface
  • Overview
  • Namespace
  • Class

Class WidgetBuilder

Build widgets from config, with a WidgetFactory

Namespace: Charcoal\App\Template
Located at Charcoal/App/Template/WidgetBuilder.php
Methods summary
public
# __construct( Charcoal\Factory\FactoryInterface $factory, Pimple\Container $container )

Parameters

$factory
An object factory.
$container
The DI container.
public Charcoal\App\Template\WidgetInterface
# build( array|ArrayAccess $options )

Parameters

$options
The form group build options / config.

Returns

Charcoal\App\Template\WidgetInterface
The "built" widget object.

Throws

InvalidArgumentException
If the widget is invalid.
Properties summary
protected Charcoal\Factory\FactoryInterface $factory

$factory

$factory

#
protected Pimple\Container $container

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

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

#
API documentation generated by ApiGen