class CsrfProtection extends HiddenField

deprecated default protection is sufficient

Constants

Protection

deprecated PROTECTION

Properties

$session

Methods

__construct(string|Stringable|null $errorMessage = null)

No description

setValue(mixed $value)

No description

void
loadHttpData()

Loads HTTP data.

string
getToken()

No description

Html|string
getControl()

Generates control's HTML element.

static bool
validateCsrf(CsrfProtection $control)

No description

Details

at line 29
__construct(string|Stringable|null $errorMessage = null)

No description

Parameters

string|Stringable|null $errorMessage

at line 55
Control setValue(mixed $value)

internal  
 

No description

Parameters

mixed $value

Return Value

Control

at line 61
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 67
string getToken()

No description

Return Value

string

at line 89
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 96
static bool validateCsrf(CsrfProtection $control)

internal  
 

No description

Parameters

CsrfProtection $control

Return Value

bool