protected function bootstrapProgressBar(ProgressBarInterface $progressBar) {

        $span = static::coreHTMLElement("span", $progressBar->getValue() . "%", ["class" => "sr-only"]);

        $attributes = [];

        $attributes["class"]         = ["progress-bar", ProgressBarRenderer::renderType($progressBar)];
        $attributes["class"][]       = ProgressBarRenderer::renderStriped($progressBar);
        $attributes["class"][]       = ProgressBarRenderer::renderAnimated($progressBar);
        $attributes["style"]         = ProgressBarRenderer::renderStyle($progressBar);
        $attributes["role"]          = "progressbar";
        $attributes["aria-valuenow"] = $progressBar->getValue();
        $attributes["aria-valuemin"] = $progressBar->getMin();
        $attributes["aria-valuemax"] = $progressBar->getMax() . "%";

        $innerHTML = ProgressBarRenderer::renderContent($progressBar, $span);

        $div = static::coreHTMLElement("div", $innerHTML, $attributes);

        return static::coreHTMLElement("div", $div, ["class" => "progress"]);
    }
protected function bootstrapProgressBar(ProgressBarInterface $progressBar) {

        $span = static::coreHTMLElement("span", $progressBar->getValue() . "%", ["class" => "sr-only"]);

        $attributes = [];

        $attributes["class"]         = ["progress-bar", ProgressBarRenderer::renderType($progressBar)];
        $attributes["class"][]       = ProgressBarRenderer::renderStriped($progressBar);
        $attributes["class"][]       = ProgressBarRenderer::renderAnimated($progressBar);
        $attributes["style"]         = ProgressBarRenderer::renderStyle($progressBar);
        $attributes["role"]          = "progressbar";
        $attributes["aria-valuenow"] = $progressBar->getValue();
        $attributes["aria-valuemin"] = $progressBar->getMin();
        $attributes["aria-valuemax"] = $progressBar->getMax() . "%";

        $innerHTML = ProgressBarRenderer::renderContent($progressBar, $span);

        $div = static::coreHTMLElement("div", $innerHTML, $attributes);

        return static::coreHTMLElement("div", $div, ["class" => "progress"]);
    }
protected function bootstrapProgressBar ( ProgressBarInterface $ progressBar ) { $ span = static :: coreHTMLElement ( "span" , $ progressBar -> getValue ( ) . "%" , [ "class" => "sr-only" ] ) ; $ attributes = [ ] ; $ attributes [ "class" ] = [ "progress-bar" , ProgressBarRenderer :: renderType ( $ progressBar ) ] ; $ attributes [ "class" ] [ ] = ProgressBarRenderer :: renderStriped ( $ progressBar ) ; $ attributes [ "class" ] [ ] = ProgressBarRenderer :: renderAnimated ( $ progressBar ) ; $ attributes [ "style" ] = ProgressBarRenderer :: renderStyle ( $ progressBar ) ; $ attributes [ "role" ] = "progressbar" ; $ attributes [ "aria-valuenow" ] = $ progressBar -> getValue ( ) ; $ attributes [ "aria-valuemin" ] = $ progressBar -> getMin ( ) ; $ attributes [ "aria-valuemax" ] = $ progressBar -> getMax ( ) . "%" ; $ innerHTML = ProgressBarRenderer :: renderContent ( $ progressBar , $ span ) ; $ div = static :: coreHTMLElement ( "div" , $ innerHTML , $ attributes ) ; return static :: coreHTMLElement ( "div" , $ div , [ "class" => "progress" ] ) ; }
Displays a Bootstrap progress bar.

@param ProgressBarInterface $progressBar The progress bar.
@return string Returns the Bootstrap progress bar.
Displays a Bootstrap progress bar .