lithium\security\validation\FormSignature::key()
Generates form signature string from form data.
Parameters
-
array
$data
An array of fields, locked fields and excluded fields.
Returns
stringThe form signature string.
Source
public static function key(array $data) {
$data += [
'fields' => [],
'locked' => [],
'excluded' => []
];
return static::_compile(
array_keys(Set::flatten($data['fields'])),
$data['locked'],
array_keys($data['excluded'])
);
}