Elcodi\Plugin\StoreSetupWizardBundle\Templating\TwigRenderer::renderMiniWizard PHP Метод

renderMiniWizard() публичный Метод

Renders the mini wizard bar
public renderMiniWizard ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface The event
    public function renderMiniWizard(EventInterface $event)
    {
        if ($this->plugin->isEnabled() && $this->isVisible() && !$this->wizardStatus->isWizardFinished()) {
            $stepsFinished = $this->wizardStatus->getStepsFinishStatus();
            $activeStep = $this->wizardStatus->getNextStep();
            $firstCarrier = $this->carrierRepository->findOneBy(['enabled' => true], ['id' => 'ASC']);
            $firstCarrier = $firstCarrier instanceof CarrierInterface ? $firstCarrier : false;
            $this->appendTemplate('@ElcodiStoreSetupWizard/Wizard/wizard.html.twig', $event, $this->plugin, ['stepsFinished' => $stepsFinished, 'activeStep' => $activeStep, 'isMiniWizard' => true, 'carrier' => $firstCarrier]);
        }
    }