<?php
declare(strict_types=1);
namespace App\Module\Cms\Action;
use Denios\Data\Cms\Story;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
/**
* Class GetContentAction
*
* @author André Varelmann <andre.varelmann@bestit-online.de>
* @package App\Module\Cms\Action
*/
class GetContentAction
{
public const PAGE_TYPE_STORY = 'story';
/**
* Get product detail
*
* @param Story $cmsContent
* @Template(template="pages/cms/get_content.html.twig")
*
* @return array
*/
public function __invoke(Story $cmsContent): array
{
return [
'cmsContent' => $cmsContent,
'page_type' => self::PAGE_TYPE_STORY,
];
}
}