first commit
This commit is contained in:
38
bundles/KupShop/AgeVerifyBundle/View/AgeVerifyView.php
Normal file
38
bundles/KupShop/AgeVerifyBundle/View/AgeVerifyView.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user