FormFactoryAwareTrait

Defines the trait for a FormFactoryInterface Aware Class.

since

4.0.0

package

Joomla CMS

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

FormFactoryInterface

setFormFactory

Set the form factory to use.

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

4.0.0

Arguments

formFactory

FormFactoryInterface|nullThe form factory to use.

Response

$this

Properties

formFactory

FormFactoryInterface

since

4.0.0

Type(s)

FormFactoryInterface