FormRendererInterface::humanize()

string humanize(string $text) Makes a technical name human readable. Sequences of underscores are replaced by single spaces. The first letter of the resulting string is capitalized, while all other letters are turned to lowercase. Parameters string $text The text to humanize Return Value string The humanized text

FormRendererInterface::setTheme()

setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. Parameters FormView $view The view to assign the theme(s) to mixed $themes The theme(s). The type of these themes is open to the implementation.

FormRendererInterface::renderBlock()

string renderBlock(FormView $view, string $blockName, array $variables = array()) Renders a named block of the form theme. Parameters FormView $view The view for which to render the block string $blockName The name of the block array $variables The variables to pass to the template Return Value string The HTML markup

FormRendererInterface::getEngine()

FormRendererEngineInterface getEngine() Returns the engine used by this renderer. Return Value FormRendererEngineInterface The renderer engine

FormRendererInterface::searchAndRenderBlock()

string searchAndRenderBlock(FormView $view, string $blockNameSuffix, array $variables = array()) Searches and renders a block for a given name suffix. The block is searched by combining the block names stored in the form view with the given suffix. If a block name is found, that block is rendered. If this method is called recursively, the block search is continued where a block was found before. Parameters FormView $view The view for which to render the block string $blockNameS

FormRendererEngineInterface::getResourceHierarchyLevel()

int|bool getResourceHierarchyLevel(FormView $view, array $blockNameHierarchy, int $hierarchyLevel) Returns the hierarchy level at which a resource can be found. A block hierarchy is an array which starts with the root of the hierarchy and continues with the child of that root, the child of that child etc. The following is an example for a block hierarchy: formwidget textwidget url_widget The second parameter $hierarchyLevel determines the level of the hierarchy that should be r

FormRendererEngineInterface::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

FormRendererEngineInterface::setTheme()

setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. Parameters FormView $view The view to assign the theme(s) to mixed $themes The theme(s). The type of these themes is open to the implementation.

FormRendererInterface

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

FormRendererEngineInterface

interface FormRendererEngineInterface Adapter for rendering form templates with a specific templating engine. Methods setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. mixed getResourceForBlockName(FormView $view, string $blockName) Returns the resource for a block name. mixed getResourceForBlockNameHierarchy(FormView $view, array $blockNameHierarchy, int $hierarchyLevel) Returns the resource for a block hierarchy. in