Gc\View\Helper\Admin::__invoke PHP Method

__invoke() public method

Retrieve the current admin
public __invoke ( ) : Model | boolean
return Gc\User\Model | boolean
    public function __invoke()
    {
        if ($this->auth->hasIdentity()) {
            return $this->auth->getIdentity();
        }
        return false;
    }