src/Adapter/Modifiers/PageMapModifier.php
protected function modifyByNewsletterController($pagesContentMap)
    {
        /** @var \OxidEsales\Eshop\Application\Controller\NewsletterController $currentController */
        $currentController = Registry::getConfig()->getActiveView();
        $pagesContentMap['newsletter'] = $currentController->getNewsletterStatus() ? $pagesContentMap['newsletter_success'] : $pagesContentMap['newsletter_failure'];

        return $pagesContentMap;
    }
protected function modifyByNewsletterController($pagesContentMap)
    {
        /** @var \OxidEsales\Eshop\Application\Controller\NewsletterController $currentController */
        $currentController = Registry::getConfig()->getActiveView();
        $pagesContentMap['newsletter'] = $currentController->getNewsletterStatus() ? $pagesContentMap['newsletter_success'] : $pagesContentMap['newsletter_failure'];

        return $pagesContentMap;
    }
@param array $pagesContentMap

@return mixed