PHP Class Neos\Neos\Domain\Service\UserInterfaceModeService

Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$defaultEditPreviewMode string
$editPreviewModes array
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$userService Neos\Neos\Service\UserService

Public Methods

Method 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 method

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

findModeByCurrentUser() public method

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

findModeByName() public method

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

Property Details

$defaultEditPreviewMode protected property

protected string $defaultEditPreviewMode
return string

$editPreviewModes protected property

protected array $editPreviewModes
return array

$privilegeManager protected property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$userService protected property

protected UserService,Neos\Neos\Service $userService
return Neos\Neos\Service\UserService