39 lines
805 B
PHP
39 lines
805 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\AgeVerifyBundle\View;
|
|
|
|
use KupShop\AgeVerifyBundle\Utils\AgeVerifyUtil;
|
|
use KupShop\KupShopBundle\Context\UserContext;
|
|
|
|
class AgeVerifyView extends \KupShop\KupShopBundle\Views\View
|
|
{
|
|
/** @required */
|
|
public UserContext $userContext;
|
|
|
|
/** @required */
|
|
public AgeVerifyUtil $ageVerifyUtil;
|
|
|
|
protected $template = 'ageverify/ageverify.tpl';
|
|
|
|
public function getBodyVariables()
|
|
{
|
|
$vars = parent::getBodyVariables();
|
|
|
|
$vars['user'] = $this->userContext->getActive();
|
|
|
|
return $vars;
|
|
}
|
|
|
|
public function getBreadcrumbs()
|
|
{
|
|
return getReturnNavigation(-1, 'USER', [$this->getTitle()]);
|
|
}
|
|
|
|
public function getTitle()
|
|
{
|
|
return translate('age_verify', 'AgeVerify');
|
|
}
|
|
}
|