setAction()
setAction(string $action) : \Charcoal\Ui\Form\FormInterface
Parameters
string | $action | The form action, typically a URL. |
Returns
\Charcoal\Ui\Form\FormInterface —Chainable
Defines a form.
setAction(string $action) : \Charcoal\Ui\Form\FormInterface
string | $action | The form action, typically a URL. |
Chainable
setMethod(string $method) : \Charcoal\Ui\Form\FormInterface
string | $method | Either "post" or "get". |
Chainable
setFormData(array $data) : \Charcoal\Ui\Form\FormInterface
array | $data | The (pre-populated) form data. |
Chainable
addFormData(string $key, mixed $val) : \Charcoal\Ui\Form\FormInterface
string | $key | The form data key, or property identifier. |
mixed | $val | The form data value, for a given key. |
Chainable