templateBuilder = $templateBuilder; } protected function needsWrapper() { return \false; } protected function getContentTemplate() { $branches = (isset($this->attributes['when'][0])) ? $this->attributes['when'] : [$this->attributes['when']]; $template = ''; foreach ($branches as $when) $template .= '' . $this->templateBuilder->getTemplate($when) . ''; $template .= '' . $this->templateBuilder->getTemplate($this->attributes['otherwise']) . ''; return $template; } }