throw $e;
} catch (\Exception
$e) { $e =
new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").',
$e->
getMessage()), -1,
$template->
getSourceContext(),
$e);
$e->
guess();
throw $e;
} } elseif (false !==
$parent =
$this->
getParent($context)) { $parent->
displayBlock($name,
$context,
array_merge($this->blocks,
$blocks), false,
$templateContext ??
$this);
} elseif (isset($blocks[$name])) { throw new RuntimeError(sprintf('Block "%s" should not call parent() in "%s" as the block does not exist in the parent template "%s".',
$name,
$blocks[$name][0
]->
getTemplateName(),
$this->
getTemplateName()), -1,
$blocks[$name][0
]->
getSourceContext());
} else { throw new RuntimeError(sprintf('Block "%s" on template "%s" does not exist.',
$name,
$this->
getTemplateName()), -1,
($templateContext ??
$this)->
getSourceContext());
} } /**
* Renders a parent block.
*
* This method is for internal use only and should never be called
* directly.
*
* @param string $name The block name to render from the parent
* @param array $context The context
* @param array $blocks The current set of blocks
*
* @return string The rendered block
*/