&$link) { $link['completed'] = $activeStep > $i; $link['returnable'] = $returnable && $i < $activeStep; } $this->templateVariableContainer->add($linksAs, $links); $this->templateVariableContainer->add($stepsAs, $linkCount); $this->templateVariableContainer->add($activeStepAs, $activeStep + $offset); $this->templateVariableContainer->add($activeStepLinkAs, $links[$activeStep]); if (isset($links[$activeStep - 1])) { $this->templateVariableContainer->add($backLinkAs, $links[$activeStep - 1]); } return $this->renderChildren(); } }