Copied!

ContentSessionScope

ContentSessionScope.php : 13
Final

Constants

publicEDIT

ContentSessionScope.php : 20
public mixed EDIT = 'edit'
Tags
Deprecated
4.6.34

The "EDIT" constant is deprecated, will be removed in 6.0.0. Content can only be shared for preview.

publicVIEW

ContentSessionScope.php : 15
public mixed VIEW = 'view'

Methods

publicgetDefaultScope()

ContentSessionScope.php : 22
public getDefaultScope() : string

Return values

string

publicgetScopes()

ContentSessionScope.php : 32
public getScopes() : array<string|int, string>

Return values

array<string|int, string>

publicisValidScope()

ContentSessionScope.php : 27
public isValidScope(string $scope) : bool

Parameters

Name Type Default value Description
$scope string - -

Return values

bool