yii\widgets\ActiveForm::endField PHP Method

endField() public method

This method will return the closing tag of an active form field started by ActiveForm::beginField.
public endField ( ) : string
return string the closing tag of the form field.
    public function endField()
    {
        $field = array_pop($this->_fields);
        if ($field instanceof ActiveField) {
            return $field->end();
        } else {
            throw new InvalidCallException('Mismatching endField() call.');
        }
    }