Lines Matching refs:context
39 * @param array $context An array of parameters to pass to the template
43 public function render($context = []) argument
47 return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
53 * @param array $context An array of parameters to pass to the template
55 public function display($context = []) argument
59 $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
66 * @param array $context An array of parameters to pass to the template
70 public function hasBlock($name, $context = []) argument
72 return $this->template->hasBlock($name, $context);
78 * @param array $context An array of parameters to pass to the template
82 public function getBlockNames($context = []) argument
84 return $this->template->getBlockNames($context);
91 * @param array $context An array of parameters to pass to the template
95 public function renderBlock($name, $context = []) argument
97 $context = $this->env->mergeGlobals($context);
101 $this->template->displayBlock($name, $context);
123 * @param array $context An array of parameters to pass to the template
125 public function displayBlock($name, $context = []) argument
127 $this->template->displayBlock($name, $this->env->mergeGlobals($context));