\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
$translator
N/A

Properties

$rendererFactory

$rendererFactory : \Nepada\FormRenderer\IBootstrap3RendererFactory

Type

\Nepada\FormRenderer\IBootstrap3RendererFactory — Form renderer factory interface

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

Methods

__construct()

__construct(\Nette\Localization\ITranslator  $translator, \Nepada\FormRenderer\IBootstrap3RendererFactory  $rendererFactory) : mixed

Constructor

Parameters

\Nette\Localization\ITranslator $translator

Translator service

\Nepada\FormRenderer\IBootstrap3RendererFactory $rendererFactory

Form renderer factory interface

Returns

mixed

create()

create(string|null  $translationPrefix = null) : \Nette\Application\UI\Form

Creates a form and set the translator

Parameters

string|null $translationPrefix

Translated message prefix

Returns

\Nette\Application\UI\Form —

Form

getTranslator()

getTranslator() : \Nette\Localization\ITranslator

Returns the translator service

Returns

\Nette\Localization\ITranslator —

Translator service