\App\CoreModule\FormsFormFactory

Generic form factory

Summary

Methods
Properties
Constants
__construct()
create()
getTranslator()
$rendererFactory
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$rendererFactory

$rendererFactory : \App\CoreModule\Forms\IBootstrap3RendererFactory

Type

\App\CoreModule\Forms\IBootstrap3RendererFactory — Form renderer factory interface

Methods

__construct()

__construct(\App\CoreModule\Forms\ITranslator  translator, \App\CoreModule\Forms\IBootstrap3RendererFactory  rendererFactory) : 

Constructor

Parameters

\App\CoreModule\Forms\ITranslator translator

Translator service

\App\CoreModule\Forms\IBootstrap3RendererFactory rendererFactory

Form renderer factory interface

Returns

create()

create(string|null  translationPrefix = null) : \App\CoreModule\Forms\Form

Creates a form and set the translator

Parameters

string|null translationPrefix

Translated message prefix

Returns

\App\CoreModule\Forms\Form —

Form

getTranslator()

getTranslator() : \App\CoreModule\Forms\ITranslator

Returns the translator service

Returns

\App\CoreModule\Forms\ITranslator —

Translator service