protected function makeModelFormFieldDataForAttributeData(ModelAttributeData $attribute)
    {
        $strategy = $this->determineFormDisplayStrategyForAttribute($attribute);

        return new ModelFormFieldData([
            'key'              => $attribute->name,
            'display_strategy' => $strategy,
            'store_strategy'   => $this->determineFormStoreStrategyForAttribute($attribute),
            'translated'       => $attribute->translated,
            'required'         => $this->shouldModelFormFieldBeRequired($attribute, $strategy),
            'options'          => $this->determineFormFieldOptions($attribute),
        ]);
    }
protected function makeModelFormFieldDataForAttributeData(ModelAttributeData $attribute)
    {
        $strategy = $this->determineFormDisplayStrategyForAttribute($attribute);

        return new ModelFormFieldData([
            'key'              => $attribute->name,
            'display_strategy' => $strategy,
            'store_strategy'   => $this->determineFormStoreStrategyForAttribute($attribute),
            'translated'       => $attribute->translated,
            'required'         => $this->shouldModelFormFieldBeRequired($attribute, $strategy),
            'options'          => $this->determineFormFieldOptions($attribute),
        ]);
    }
protected function makeModelFormFieldDataForAttributeData ( ModelAttributeData $ attribute ) { $ strategy = $ this -> determineFormDisplayStrategyForAttribute ( $ attribute ) ; return new ModelFormFieldData ( [ 'key' => $ attribute -> name , 'display_strategy' => $ strategy , 'store_strategy' => $ this -> determineFormStoreStrategyForAttribute ( $ attribute ) , 'translated' => $ attribute -> translated , 'required' => $ this -> shouldModelFormFieldBeRequired ( $ attribute , $ strategy ) , 'options' => $ this -> determineFormFieldOptions ( $ attribute ) , ] ) ; }
Makes data set for form field given attribute data.

@param ModelAttributeData $attribute
@return ModelFormFieldData
Makes data set for form field given attribute data .