Type::getRequiredOptions()

array getRequiredOptions() Returns the name of the required options. Override this method if you want to define required options. Return Value array

Type::getCollectionKeyType()

Type|null getCollectionKeyType() Gets collection key type. Only applicable for a collection type. Return Value Type|null

Type::getCollectionValueType()

Type|null getCollectionValueType() Gets collection value type. Only applicable for a collection type. Return Value Type|null

Type

class Type Type value object (immutable). Constants BUILTIN_TYPE_INT BUILTIN_TYPE_FLOAT BUILTIN_TYPE_STRING BUILTIN_TYPE_BOOL BUILTIN_TYPE_RESOURCE BUILTIN_TYPE_OBJECT BUILTIN_TYPE_ARRAY BUILTIN_TYPE_NULL BUILTIN_TYPE_CALLABLE Properties static string[] $builtinTypes List of PHP builtin types. Methods __construct(string $builtinType, bool $nullable = false, string|null $class = null, bool $collection = false, Type $collectionKeyType = null, Type

Type

class Type extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. INVALID_TYPE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message $type Methods s

TwigRendererInterface

interface TwigRendererInterface implements FormRendererInterface Methods FormRendererEngineInterface getEngine() Returns the engine used by this renderer. from FormRendererInterface setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. from FormRendererInterface string renderBlock(FormView $view, string $blockName, array $variables = array()) Renders a named block of the form theme. from FormRendererInterface string searchAn

TwigRendererEngineInterface

interface TwigRendererEngineInterface implements FormRendererEngineInterface Methods setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. from FormRendererEngineInterface mixed getResourceForBlockName(FormView $view, string $blockName) Returns the resource for a block name. from FormRendererEngineInterface mixed getResourceForBlockNameHierarchy(FormView $view, array $blockNameHierarchy, integer $hierarchyLevel) Returns the reso

TwigRendererEngine::renderBlock()

string renderBlock(FormView $view, mixed $resource, string $blockName, array $variables = array()) Renders a block in the given renderer resource. The resource can be obtained by calling {@link getResourceForBlock()} or {@link getResourceForBlockHierarchy()}. The type of the resource is decided by the implementation. Parameters FormView $view The view to render mixed $resource The renderer resource string $blockName The name of the block to render array $variables The variables

TwigRendererEngine::setEnvironment()

setEnvironment(Twig_Environment $environment) Sets Twig's environment. Parameters Twig_Environment $environment

TwigRendererEngine

class TwigRendererEngine extends AbstractRendererEngine implements TwigRendererEngineInterface Constants CACHE_KEY_VAR The variable in {@link FormView} used as cache key. Methods __construct(array $defaultThemes = array()) Creates a new renderer engine. from AbstractRendererEngine setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. from AbstractRendererEngine mixed getResourceForBlockName(FormView $view, string $blockName