SilverStripe CSP headers

CSSBuilder extends BaseBuilder
in package
implements BuilderInterface

Table of Contents

Interfaces

BuilderInterface

Properties

$owner  : CSPBackend
$sriBuilder  : SRIBuilder

Methods

__construct()  : mixed
CSSBuilder constructor.
buildTags()  : array<string|int, mixed>
getCustomTags()  : array<string|int, mixed>
getHeadTags()  : void
getNonce()  : void
getOwner()  : CSPBackend
getSriBuilder()  : SRIBuilder
setOwner()  : void
setSriBuilder()  : void
getBaseCustomTags()  : void
getBaseHeadTags()  : void

Properties

Methods

buildTags()

public buildTags(string $file, array<string|int, mixed> $attributes, array<string|int, mixed> $requirements, string $path) : array<string|int, mixed>
Parameters
$file : string
$attributes : array<string|int, mixed>
$requirements : array<string|int, mixed>
$path : string
Tags
throws
ValidationException
Return values
array<string|int, mixed>

getCustomTags()

public getCustomTags([array<string|int, mixed> $requirements = [] ]) : array<string|int, mixed>
Parameters
$requirements : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getHeadTags()

public getHeadTags(array<string|int, mixed> &$requirements) : void
Parameters
$requirements : array<string|int, mixed>

getNonce()

public static getNonce(array<string|int, mixed> &$options) : void
Parameters
$options : array<string|int, mixed>

getBaseCustomTags()

protected getBaseCustomTags([array<string|int, mixed> &$requirements = [] ][, array<string|int, mixed> $scripts = [] ][, string $type = '' ]) : void
Parameters
$requirements : array<string|int, mixed> = []
$scripts : array<string|int, mixed> = []
$type : string = ''

getBaseHeadTags()

protected getBaseHeadTags(array<string|int, mixed> &$requirements, array<string|int, mixed> $scripts[, string $type = '' ]) : void
Parameters
$requirements : array<string|int, mixed>
$scripts : array<string|int, mixed>
$type : string = ''

        
On this page

Search results