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

run() public method

Renders the widget.
public run ( ) : string
return string the result of widget execution to be outputted.
    public function run()
    {
        if (empty($this->links)) {
            return;
        }
        echo Html::beginTag('nav', $this->containerOptions);
        echo Html::beginTag($this->tag, $this->options);
        if ($this->innerContainerOptions !== false) {
            $innerContainerTag = ArrayHelper::remove($this->innerContainerOptions, 'tag', 'div');
            echo Html::beginTag($innerContainerTag, $this->innerContainerOptions);
        }
        echo implode('', $this->prepareLinks());
        if ($this->innerContainerOptions !== false) {
            echo Html::endTag($innerContainerTag);
        }
        echo Html::endTag($this->tag);
        echo Html::endTag('nav');
    }