common/models/resources/Form.php
public function getFieldsMap() {

		$formFields = $this->fields;
		$fieldsMap	= [];

		foreach( $formFields as $formField ) {

			$fieldsMap[ $formField->name ] = $formField;
		}

		return $fieldsMap;
	}
public function getFieldsMap() {

		$formFields = $this->fields;
		$fieldsMap	= [];

		foreach( $formFields as $formField ) {

			$fieldsMap[ $formField->name ] = $formField;
		}

		return $fieldsMap;
	}
public function getFieldsMap ( ) { $ formFields = $ this -> fields ; $ fieldsMap = [ ] ; foreach ( $ formFields as $ formField ) { $ fieldsMap [ $ formField -> name ] = $ formField ; } return $ fieldsMap ; }
Return map of form fields having field name as key and field itself as value.

@return array FormField map
Return map of form fields having field name as key and field itself as value .