\Cake\View\HelperSecureFieldTokenTrait

Provides methods for building token data that is compatible with SecurityComponent.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
_buildFieldToken()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

_buildFieldToken()

_buildFieldToken(string  $url, array  $fields, array  $unlockedFields = array()) : array

Generate the token data for the provided inputs.

Parameters

string $url

The URL the form is being submitted to.

array $fields

If set specifies the list of fields to use when generating the hash.

array $unlockedFields

The list of fields that are excluded from field validation.

Returns

array —

The token data.