Lines Matching refs:context
39 * @param array $context An array of parameters to pass to the template
41 public function render(array $context = []): string argument
45 return $this->template->render($context, \func_get_args()[1] ?? []);
51 * @param array $context An array of parameters to pass to the template
53 public function display(array $context = []) argument
57 $this->template->display($context, \func_get_args()[1] ?? []);
64 * @param array $context An array of parameters to pass to the template
66 public function hasBlock(string $name, array $context = []): bool argument
68 return $this->template->hasBlock($name, $context);
74 * @param array $context An array of parameters to pass to the template
78 public function getBlockNames(array $context = []): array argument
80 return $this->template->getBlockNames($context);
87 * @param array $context An array of parameters to pass to the template
91 public function renderBlock(string $name, array $context = []): string argument
93 $context = $this->env->mergeGlobals($context);
101 $this->template->displayBlock($name, $context);
117 * @param array $context An array of parameters to pass to the template
119 public function displayBlock(string $name, array $context = []) argument
121 $this->template->displayBlock($name, $this->env->mergeGlobals($context));