lithium\security\validation\FormSignature::key()

public static method

Generates form signature string from form data.

Parameters

  • array $data

    An array of fields, locked fields and excluded fields.

Returns

string

The 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'])
		);
	}