lithium\security\auth\adapter\Form::_data()

protected method

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

array

Original 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;
	}