Refactored source to entity template

This commit is contained in:
Kevin Frantz 2019-02-24 15:39:07 +01:00
parent b6f7a1e9b8
commit 327818295a
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,11 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
{
use ActionTypeAttribut;
/**
* @var string The path to the general entity template
*/
const TWIG_ENTITY_TEMPLATE_PATH = 'entity/entity.html.twig';
/**
* @var ActionHandlerServiceInterface
*/
@ -49,8 +54,7 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
private function getView(): View
{
$view = View::create();
$view->setTemplate($this->templateNameService->getMoleculeTemplateName());
$view->setTemplate(self::TWIG_ENTITY_TEMPLATE_PATH);
return $view;
}