Symfony\Bridge\Twig\Form\TwigRendererEngine::loadResourceForBlockName
Loads the cache with the resource for a given block name.
This implementation eagerly loads all blocks of the themes assigned to the given view and all of its ancestors views. This is necessary, because Twig receives the list of blocks later. At that point, all blocks must already be loaded, for the case that the function "block()" is used in the Twig template.
Signature
protected function loadResourceForBlockName(string
$cacheKey,
FormView
$view,
string
$blockName )
Parameters
$cacheKey
— string- The cache key of the form view.
$view
— Symfony\Component\Form\FormView- The form view for finding the applying themes.
$blockName
— string- The name of the block to load.
Returns
- Boolean
- True if the resource could be loaded, false otherwise.