lithium\security\auth\adapter\Form::_data()
Checks if the data container values are inside indexed arrays from binding. Get the values from the binding coresponding to the model if such exists.
Parameters
-
array
$data
The array of raw form data.
Returns
arrayOriginal or sub array of the form data.
Source
protected function _data($data) {
$model = $this->_model;
$index = strtolower(Inflector::singularize($model::meta('name')));
return isset($data[$index]) && is_array($data[$index]) ? $data[$index] : $data;
}