src/Widgets/Bootstrap/NavBar.php
protected function renderToggleButton()
    {
        $icon = $this->htmlHlp->tag('span', '', ['class' => 'navbar-toggler-icon']);
        $screenReader = isset($this->screenReaderToggleText)
            ? "<span class=\"sr-only\">{$this->screenReaderToggleText}</span>"
            : '';

        return $this->htmlHlp->button("{$screenReader}\n{$icon}", [
            'class' => 'navbar-toggler',
            'data-toggle' => 'collapse',
            'data-target' => "#{$this->containerOptions['id']}",
        ]);
    }
protected function renderToggleButton()
    {
        $icon = $this->htmlHlp->tag('span', '', ['class' => 'navbar-toggler-icon']);
        $screenReader = isset($this->screenReaderToggleText)
            ? "<span class=\"sr-only\">{$this->screenReaderToggleText}</span>"
            : '';

        return $this->htmlHlp->button("{$screenReader}\n{$icon}", [
            'class' => 'navbar-toggler',
            'data-toggle' => 'collapse',
            'data-target' => "#{$this->containerOptions['id']}",
        ]);
    }
Renders collapsible toggle button.
@return string the rendering toggle button.