public function renderSnippets(array $blocks, array $params) { if ($this->renderingSnippets || !$this->bridge->isSnippetMode()) { return FALSE; } $this->renderingSnippets = TRUE; $this->bridge->setSnippetMode(FALSE); foreach ($blocks as $name => $function) { if ($name[0] !== '_' || !$this->bridge->needsRedraw(substr($name, 1))) { continue; } $function = reset($function); $function($params); } $this->bridge->setSnippetMode(TRUE); $this->bridge->renderChildren(); return TRUE; }