AbstractRendererEngine::getResourceForBlockName()

mixed getResourceForBlockName(FormView $view, string $blockName)

Returns the resource for a block name.

The resource is first searched in the themes attached to $view, then in the themes of its parent view and so on, until a resource was found.

The type of the resource is decided by the implementation. The resource is later passed to {@link renderBlock()} by the rendering algorithm.

Parameters

FormView $view The view for determining the used themes First the themes attached directly to the view with {@link setTheme()} are considered, then the ones of its parent etc.
string $blockName The name of the block to render

Return Value

mixed The renderer resource or false, if none was found
doc_Symfony
2016-10-28 06:04:24
Comments
Leave a Comment

Please login to continue.