PHP Class Neos\Neos\Domain\Service\UserInterfaceModeService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$defaultEditPreviewMode string
$editPreviewModes array
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$userService Neos\Neos\Service\UserService

Méthodes publiques

Méthode Description
findDefaultMode ( ) : UserInterfaceMode Returns the default rendering mode.
findModeByCurrentUser ( ) : UserInterfaceMode Get the current rendering mode (editPreviewMode).
findModeByName ( string $modeName ) : UserInterfaceMode Finds an rendering mode by name.

Method Details

findDefaultMode() public méthode

Returns the default rendering mode.
public findDefaultMode ( ) : UserInterfaceMode
Résultat Neos\Neos\Domain\Model\UserInterfaceMode

findModeByCurrentUser() public méthode

Will return a live mode when not in backend.
public findModeByCurrentUser ( ) : UserInterfaceMode
Résultat Neos\Neos\Domain\Model\UserInterfaceMode

findModeByName() public méthode

Finds an rendering mode by name.
public findModeByName ( string $modeName ) : UserInterfaceMode
$modeName string
Résultat Neos\Neos\Domain\Model\UserInterfaceMode

Property Details

$defaultEditPreviewMode protected_oe property

protected string $defaultEditPreviewMode
Résultat string

$editPreviewModes protected_oe property

protected array $editPreviewModes
Résultat array

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$userService protected_oe property

protected UserService,Neos\Neos\Service $userService
Résultat Neos\Neos\Service\UserService