FormFactoryAwareTrait

Defines the trait for a FormFactoryInterface Aware Class.

since

4.0.0

Methods

getFormFactory

Get the FormFactoryInterface.

getFormFactory() : \Joomla\CMS\Form\FormFactoryInterface
since

4.0.0

throws

\UnexpectedValueExceptionMay be thrown if the FormFactory has not been set.

Response

\Joomla\CMS\Form\FormFactoryInterface

setFormFactory

Set the form factory to use.

setFormFactory(\Joomla\CMS\Form\FormFactoryInterface $formFactory = null) : $this
since

4.0.0

Arguments

$formFactory

\Joomla\CMS\Form\FormFactoryInterfaceThe form factory to use.

Response

$this

Properties

formFactory

FormFactoryInterface