public function hasBlock(string
$name, array
$context =
[]): bool
{ return $this->template->
hasBlock($name,
$context);
} /**
* @return string[] An array of defined template block names
*/
public function getBlockNames(array
$context =
[]): array
{ return $this->template->
getBlockNames($context);
} public function renderBlock(string
$name, array
$context =
[]): string
{ $context =
$this->env->
mergeGlobals($context);
$level =
ob_get_level();
if ($this->env->
isDebug()) { ob_start();
} else { ob_start(function D
) { return '';
});
}