FormRenderer::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 $blockNameSuffix The suffix of the block name
array $variables The variables to pass to the template

Return Value

string The HTML markup
doc_Symfony
2016-10-28 06:19:08
Comments
Leave a Comment

Please login to continue.