Scope

final class \TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope

Implements
Stringable, JsonSerializable

Representation of a specific application type scope (backend, frontend), which can optionally be enriched by site-related details.

Table of Contents

Interfaces

Stringable
JsonSerializable

Properties

$site  : Site|null
$siteIdentifier  : string|null
$type  : ApplicationType

Methods

__toString()  : string
backend()  : self
from()  : self
frontend()  : self
frontendSite()  : self
frontendSiteIdentifier()  : self
isFrontendSite()  : bool
jsonSerialize()  : string
reset()  : void
tryFrom()  : self|null

Properties

$site read-only

Deprecated

actually just @internal - but it might be removed later

public Site|null $site

$siteIdentifier read-only

public string|null $siteIdentifier = null

Methods

__toString()

public __toString() : string

Return values

string

backend()

public static backend() : self

Return values

self

from()

public static from(string $value) : self

Parameters

$value : string

Return values

self

frontend()

public static frontend() : self

Return values

self

frontendSiteIdentifier()

public static frontendSiteIdentifier(string $siteIdentifier) : self

Parameters

$siteIdentifier : string

Return values

self

isFrontendSite()

public isFrontendSite() : bool

Return values

bool

jsonSerialize()

public jsonSerialize() : string

Return values

string

tryFrom()

public static tryFrom(string $value) : self|null

Parameters

$value : string

Return values

self|null
On this page