Displays a block.
This method is for internal use only and should never be called directly.
string $name The block name to display:
array $context The context:
array $blocks The current set of blocks:
public function displayBlock($name, array $context, array $blocks = array()) {
$name = (string) $name;
if (isset($blocks[$name])) {
$b = $blocks;
unset($b[$name]);
call_user_func($blocks[$name], $context, $b);
}
elseif (isset($this->blocks[$name])) {
call_user_func($this->blocks[$name], $context, $blocks);
}
elseif (false !== ($parent = $this
->getParent($context))) {
$parent
->displayBlock($name, $context, array_merge($this->blocks, $blocks));
}
}