src/relatedProperties/PropertyType.php
public function renderForActiveForm()
    {
        $field = $this->activeForm->field($this->property->relatedPropertiesModel, $this->property->code);

        if (!$field) {
            return '';
        }

        return $field;
    }
public function renderForActiveForm()
    {
        $field = $this->activeForm->field($this->property->relatedPropertiesModel, $this->property->code);

        if (!$field) {
            return '';
        }

        return $field;
    }
public function renderForActiveForm ( ) { $ field = $ this -> activeForm -> field ( $ this -> property -> relatedPropertiesModel , $ this -> property -> code ) ; if ( ! $ field ) { return '' ; } return $ field ; }
Drawing form element
@return \yii\widgets\ActiveField
Drawing form element