Property | Type | Description | |
---|---|---|---|
$cache | |||
$environment | |||
$resources | |||
$templates | |||
$themes |
Method | Description | |
---|---|---|
__construct ( array $resources = [] ) | ||
getFilters ( ) | ||
getName ( ) : string | Returns the name of the extension. | |
getTokenParsers ( ) : array | Returns the token parser instance to add to the existing list. | |
initRuntime ( Twig_Environment $environment ) | ||
render ( Symfony\Component\Form\FieldInterface $field, array $attributes = [], array $parameters = [], string $resources = null ) | Renders the HTML for an individual form field | |
renderEnctype ( |
Renders the HTML enctype in the form tag, if necessary | |
renderErrors ( Symfony\Component\Form\FieldInterface $field, array $parameters = [] ) | Renders the errors of the given field | |
renderHidden ( Symfony\Component\Form\FieldGroupInterface $group, array $parameters = [] ) | Renders all hidden fields of the given field group | |
renderLabel ( Symfony\Component\Form\FieldInterface $field, $label = null, array $parameters = [] ) | Renders the label of the given field | |
setTheme ( Symfony\Component\Form\FieldGroupInterface $group, array $resources ) |
Method | Description | |
---|---|---|
getWidget ( Symfony\Component\Form\FieldInterface $field, array $resources = [] ) | ||
resolveResources ( array $resources ) | ||
resolveTemplate ( $template ) |
public getTokenParsers ( ) : array | ||
return | array | An array of Twig_TokenParser instances |
public initRuntime ( Twig_Environment $environment ) | ||
$environment | Twig_Environment |
public renderEnctype ( |
||
$form | The form for which to render the encoding type |
public renderErrors ( Symfony\Component\Form\FieldInterface $field, array $parameters = [] ) | ||
$field | Symfony\Component\Form\FieldInterface | The field to render the errors for |
$parameters | array |
public renderHidden ( Symfony\Component\Form\FieldGroupInterface $group, array $parameters = [] ) | ||
$group | Symfony\Component\Form\FieldGroupInterface | The field group |
$parameters | array |
public renderLabel ( Symfony\Component\Form\FieldInterface $field, $label = null, array $parameters = [] ) | ||
$field | Symfony\Component\Form\FieldInterface | The field to render the label for |
$parameters | array |
protected resolveResources ( array $resources ) | ||
$resources | array |