CsrfProtection
class CsrfProtection extends HiddenField
CSRF protection field.
Constants
Protection |
|
deprecated PROTECTION |
|
Properties
$session |
Methods
__construct(string|Stringable|null $errorMessage = null)
No description
void
loadHttpData()
Loads HTTP data.
string
getToken()
No description
Html|string
getControl()
Generates control's HTML element.
static bool
Details
at line 30
__construct(string|Stringable|null $errorMessage = null)
No description
at line 56
Control
setValue(mixed $value)
internal |
No description
at line 62
void
loadHttpData()
Loads HTTP data.
at line 68
string
getToken()
No description
at line 90
Html|string
getControl()
Generates control's HTML element.
at line 97
static bool
validateCsrf(CsrfProtection $control)
internal |
No description