Elcodi\Plugin\StoreSetupWizardBundle\Templating\TwigRenderer::renderDisableUnderConstructionMode PHP Method

renderDisableUnderConstructionMode() public method

Render the disable under construction mode.
public renderDisableUnderConstructionMode ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface The event
    public function renderDisableUnderConstructionMode(EventInterface $event)
    {
        if ($this->plugin->isUsable()) {
            $masterRequest = $this->requestStack->getMasterRequest();
            $currentRoute = $masterRequest->attributes->get('_route');
            $isWizardFinished = $this->wizardStatus->isWizardFinished();
            if ('admin_configuration_list' == $currentRoute && $isWizardFinished) {
                $this->appendTemplate('@ElcodiStoreSetupWizard/Wizard/disable-under-construction.html.twig', $event, $this->plugin);
            }
        }
    }