Type|null getCollectionKeyType() Gets collection key type. Only applicable for a collection type. Return Value Type|null
string|null getClassName() Gets the class name. Only applicable if the built-in type is object. Return Value string|null
string getBuiltinType() Gets built-in type. Can be bool, int, float, string, array, object, resource, null or callback. Return Value string
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
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
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
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
setEnvironment(Twig_Environment $environment) Sets Twig's environment. Parameters Twig_Environment $environment
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
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
Page 41 of 787