src/Adapter/Modifiers/PageMapModifier.php
protected function modifyByContentController($pagesContentMap, $parameters)
    {
        /** @var \OxidEsales\Eshop\Application\Controller\ContentController $currentController */
        $currentController = Registry::getConfig()->getActiveView();
        $content = $currentController->getContent();
        $contentId = $content ? $content->oxcontents__oxloadid->value : null;

        if (array_key_exists('content_' . $contentId, $pagesContentMap)) {
            $pagesContentMap['content'] = $pagesContentMap['content_' . $contentId];
        } else {
            $title = isset($parameters['title']) ? $parameters['title'] : null;
            $pagesContentMap['content'] = 'Content/' . $title;
        }

        return $pagesContentMap;
    }
protected function modifyByContentController($pagesContentMap, $parameters)
    {
        /** @var \OxidEsales\Eshop\Application\Controller\ContentController $currentController */
        $currentController = Registry::getConfig()->getActiveView();
        $content = $currentController->getContent();
        $contentId = $content ? $content->oxcontents__oxloadid->value : null;

        if (array_key_exists('content_' . $contentId, $pagesContentMap)) {
            $pagesContentMap['content'] = $pagesContentMap['content_' . $contentId];
        } else {
            $title = isset($parameters['title']) ? $parameters['title'] : null;
            $pagesContentMap['content'] = 'Content/' . $title;
        }

        return $pagesContentMap;
    }
@param array $pagesContentMap
@param array $parameters

@return array