yii\widgets\ActiveField::end PHP Метод

end() публичный Метод

Renders the closing tag of the field container.
public end ( ) : string
Результат string the rendering result.
    public function end()
    {
        return Html::endTag(ArrayHelper::keyExists('tag', $this->options) ? $this->options['tag'] : 'div');
    }

Usage Example

Пример #1
0
 public function testEnd()
 {
     $expectedValue = '</div>';
     $actualValue = $this->activeField->end();
     $this->assertEquals($expectedValue, $actualValue);
     // other tag
     $expectedValue = "</article>";
     $this->activeField->options['tag'] = 'article';
     $actualValue = $this->activeField->end();
     $this->assertTrue($actualValue === $expectedValue);
 }
All Usage Examples Of yii\widgets\ActiveField::end