Trait SecureFieldTokenTrait
Provides methods for building token data that is compatible with SecurityComponent.
Namespace: Cake\View\Helper
Method Summary
-
_buildFieldToken() protected
Generate the token data for the provided inputs.
Method Detail
_buildFieldToken() ΒΆ protected
_buildFieldToken(string $url, array $fields, string[] $unlockedFields = []): 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.
-
string[]
$unlockedFields optional The list of fields that are excluded from field validation.
Returns
array