public function getName()
    {
        $name = false;

        // - we are on admin
        $sm = $this->themeLocator->getServiceLocator();

        // get registered PermissionsManager service and retrieve plugin
        $permissionsManager = $sm->get('yimaAuthorize.AuthServiceManager');

        /** @var $permission \yimaAdminor\Auth\AuthService */
        $permission = $permissionsManager->get('yima_adminor');
        if (!$permission->identity()->hasAuthenticated())
            // user not authorized to adminor
            return false;

        $config = $sm->get('config');
        if (isset($config['yima_adminor']) && is_array($config['yima_adminor'])) {

            $name = (isset($config['yima_adminor']['default_theme']))
                ? $config['yima_adminor']['default_theme']
                : false;
        }

        return $name;
    }
public function getName()
    {
        $name = false;

        // - we are on admin
        $sm = $this->themeLocator->getServiceLocator();

        // get registered PermissionsManager service and retrieve plugin
        $permissionsManager = $sm->get('yimaAuthorize.AuthServiceManager');

        /** @var $permission \yimaAdminor\Auth\AuthService */
        $permission = $permissionsManager->get('yima_adminor');
        if (!$permission->identity()->hasAuthenticated())
            // user not authorized to adminor
            return false;

        $config = $sm->get('config');
        if (isset($config['yima_adminor']) && is_array($config['yima_adminor'])) {

            $name = (isset($config['yima_adminor']['default_theme']))
                ? $config['yima_adminor']['default_theme']
                : false;
        }

        return $name;
    }
public function getName ( ) { $ name = false ; // - we are on admin $ sm = $ this -> themeLocator -> getServiceLocator ( ) ; // get registered PermissionsManager service and retrieve plugin $ permissionsManager = $ sm -> get ( 'yimaAuthorize.AuthServiceManager' ) ; /** @var $permission \yimaAdminor\Auth\AuthService */ $ permission = $ permissionsManager -> get ( 'yima_adminor' ) ; if ( ! $ permission -> identity ( ) -> hasAuthenticated ( ) ) // user not authorized to adminor return false ; $ config = $ sm -> get ( 'config' ) ; if ( isset ( $ config [ 'yima_adminor' ] ) && is_array ( $ config [ 'yima_adminor' ] ) ) { $ name = ( isset ( $ config [ 'yima_adminor' ] [ 'default_theme' ] ) ) ? $ config [ 'yima_adminor' ] [ 'default_theme' ] : false ; } return $ name ; }
Get default admin template name from merged config

@return bool
Get default admin template name from merged config