FluidTYPO3\Vhs\ViewHelpers\Security\AbstractSecurityViewHelper::getCurrentFrontendUser PHP Метод

getCurrentFrontendUser() публичный Метод

Gets the currently logged in Frontend User
public getCurrentFrontendUser ( ) : TYPO3\CMS\Extbase\Domain\Model\FrontendUser | null
Результат TYPO3\CMS\Extbase\Domain\Model\FrontendUser | null
    public function getCurrentFrontendUser()
    {
        if (true === empty($GLOBALS['TSFE']->loginUser)) {
            return null;
        }
        return $this->frontendUserRepository->findByUid($GLOBALS['TSFE']->fe_user->user['uid']);
    }