macgyer\yii2materializecss\widgets\Modal::run PHP Method

run() public method

Executes the widget.
public run ( ) : string
return string the result of widget execution to be outputted.
    public function run()
    {
        $options = $this->options;
        $html = '';
        if ($this->closeButtonPosition === self::CLOSE_BUTTON_POSITION_AFTER_CONTENT) {
            $html = $this->renderCloseButton();
        }
        $html .= Html::endTag('div');
        $html .= $this->renderFooter();
        if ($this->closeButtonPosition === self::CLOSE_BUTTON_POSITION_SUCCEED_CONTENT_CONTAINER) {
            $html .= $this->renderCloseButton();
        }
        $tag = ArrayHelper::remove($options, 'tag', 'div');
        $html .= Html::endTag($tag);
        echo $html;
    }