Property | Type | Description | |
---|---|---|---|
$context | |||
$engine | |||
$resources | |||
$templates | |||
$themes | |||
$varStack |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\Templating\EngineInterface $engine, array $resources ) | Constructor; | |
enctype ( Symfony\Component\Form\FormView $view ) : string | Renders the HTML enctype in the form tag, if necessary. | |
errors ( Symfony\Component\Form\FormView $view ) : string | Renders the errors of the given view. | |
getName ( ) | ||
isChoiceGroup ( $label ) | ||
isChoiceSelected ( Symfony\Component\Form\FormView $view, $choice ) | ||
label ( Symfony\Component\Form\FormView $view, string $label = null, array $variables = [] ) : string | Renders the label of the given view. | |
renderBlock ( string $name, array $variables = [] ) | Render a block from a form element. | |
rest ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders views which have not already been rendered. | |
row ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders the entire form field "row". | |
setTheme ( Symfony\Component\Form\FormView $view, $themes ) | Sets a theme for a given view. | |
widget ( Symfony\Component\Form\FormView $view, array $variables = [] ) : string | Renders the HTML for a given view. |
Method | Description | |
---|---|---|
lookupTemplate ( Symfony\Component\Form\FormView $view, string $block ) : string | boolean | Returns the name of the template to use to render the block | |
renderSection ( Symfony\Component\Form\FormView $view, string $section, array $variables = [] ) : string | Renders a template. |
public __construct ( Symfony\Component\Templating\EngineInterface $engine, array $resources ) | ||
$engine | Symfony\Component\Templating\EngineInterface | The templating engine |
$resources | array | An array of theme name |
public isChoiceSelected ( Symfony\Component\Form\FormView $view, $choice ) | ||
$view | Symfony\Component\Form\FormView |
public label ( Symfony\Component\Form\FormView $view, string $label = null, array $variables = [] ) : string | ||
$view | Symfony\Component\Form\FormView | The view for which to render the label |
$label | string | The label |
$variables | array | Additional variables passed to the template |
return | string | The html markup |
public renderBlock ( string $name, array $variables = [] ) | ||
$name | string | |
$variables | array | Additional variables (those would override the current context) |
protected renderSection ( Symfony\Component\Form\FormView $view, string $section, array $variables = [] ) : string | ||
$view | Symfony\Component\Form\FormView | The form view |
$section | string | The section to render (i.e. 'row', 'widget', 'label', ...) |
$variables | array | Additional variables |
return | string | The html markup |
public setTheme ( Symfony\Component\Form\FormView $view, $themes ) | ||
$view | Symfony\Component\Form\FormView | A FormView instance |