public function getField($objectName, $fieldName, $excludeFormDefaults = true)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['__field_index'][$fieldName])) {
            $fieldConfiguration = array_replace_recursive($this->defaultFieldConfiguration, $modelConfiguration['fields'][$modelConfiguration['__field_index'][$fieldName]]);
            if ($excludeFormDefaults && isset($fieldConfiguration['form_defaults'])) {
                unset($fieldConfiguration["form_defaults"]);
            }

            return $fieldConfiguration;
        }
    }
public function getField($objectName, $fieldName, $excludeFormDefaults = true)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['__field_index'][$fieldName])) {
            $fieldConfiguration = array_replace_recursive($this->defaultFieldConfiguration, $modelConfiguration['fields'][$modelConfiguration['__field_index'][$fieldName]]);
            if ($excludeFormDefaults && isset($fieldConfiguration['form_defaults'])) {
                unset($fieldConfiguration["form_defaults"]);
            }

            return $fieldConfiguration;
        }
    }
public function getField ( $ objectName , $ fieldName , $ excludeFormDefaults = true ) { $ modelConfiguration = $ this -> getModelConfiguration ( $ objectName ) ; if ( isset ( $ modelConfiguration [ '__field_index' ] [ $ fieldName ] ) ) { $ fieldConfiguration = array_replace_recursive ( $ this -> defaultFieldConfiguration , $ modelConfiguration [ 'fields' ] [ $ modelConfiguration [ '__field_index' ] [ $ fieldName ] ] ) ; if ( $ excludeFormDefaults && isset ( $ fieldConfiguration [ 'form_defaults' ] ) ) { unset ( $ fieldConfiguration [ "form_defaults" ] ) ; } return $ fieldConfiguration ; } }
Returns the configuration of a field in the specified object.

@param string $objectName
@param string $fieldName

@return array|null
Returns the configuration of a field in the specified object .