public function replaceCommonTemplates(&$stub, Field $field)
    {
        return $this->replaceFieldName($stub, $field->name)
            ->replaceModelName($stub, $this->modelName)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceFieldType($stub, $field->htmlType)
            ->replaceFieldTitle($stub, $this->getTitle($field->getLabel()));
    }
public function replaceCommonTemplates(&$stub, Field $field)
    {
        return $this->replaceFieldName($stub, $field->name)
            ->replaceModelName($stub, $this->modelName)
            ->replaceCssClass($stub, $field->cssClass)
            ->replaceFieldType($stub, $field->htmlType)
            ->replaceFieldTitle($stub, $this->getTitle($field->getLabel()));
    }
public function replaceCommonTemplates ( & $ stub , Field $ field ) { return $ this -> replaceFieldName ( $ stub , $ field -> name ) -> replaceModelName ( $ stub , $ this -> modelName ) -> replaceCssClass ( $ stub , $ field -> cssClass ) -> replaceFieldType ( $ stub , $ field -> htmlType ) -> replaceFieldTitle ( $ stub , $ this -> getTitle ( $ field -> getLabel ( ) ) ) ; }
Replaces field's common templates

@param CrestApps\CodeGenerator\Models\Field $field

@return $this
Replaces field s common templates