Method | Description | |
---|---|---|
__construct ( |
Constructor | |
getFooter ( ) : string | false | Returns currently set footer, or false if not in the form rendering stack | |
render ( string $action, array $form_vars = [], array $body_vars = [] ) : string | Convenience function for generating a form from a view in a standard location. | |
setFooter ( string $footer = '' ) : boolean | Sets form footer and defers its rendering until the form view and extensions have been rendered. |
public __construct ( |
||
$views | Views service | |
$logger | Logger service |
public render ( string $action, array $form_vars = [], array $body_vars = [] ) : string | ||
$action | string | The name of the action. An action name does not include the leading "action/". For example, "login" is an action name. |
$form_vars | array | $vars passed to the "input/form" view |
$body_vars | array | $vars passed to the "forms/ |
return | string | The complete form |