src/Netzmacht/Bootstrap/Buttons/Dropdown.php
public function generate()
    {
        $toggle = clone $this->toggle;
        $toggle->addAttributes($this->attributes);
        $toggle->setLabel($toggle->getLabel() . ' ' . Bootstrap::getConfigVar('dropdown.toggle'));

        return sprintf(
            '%s<ul class="dropdown-menu">%s%s</ul>',
            $toggle,
            PHP_EOL,
            $this->generateChildren()
        );
    }
public function generate()
    {
        $toggle = clone $this->toggle;
        $toggle->addAttributes($this->attributes);
        $toggle->setLabel($toggle->getLabel() . ' ' . Bootstrap::getConfigVar('dropdown.toggle'));

        return sprintf(
            '%s<ul class="dropdown-menu">%s%s</ul>',
            $toggle,
            PHP_EOL,
            $this->generateChildren()
        );
    }
public function generate ( ) { $ toggle = clone $ this -> toggle ; $ toggle -> addAttributes ( $ this -> attributes ) ; $ toggle -> setLabel ( $ toggle -> getLabel ( ) . ' ' . Bootstrap :: getConfigVar ( 'dropdown.toggle' ) ) ; return sprintf ( '%s<ul class="dropdown-menu">%s%s</ul>' , $ toggle , PHP_EOL , $ this -> generateChildren ( ) ) ; }
Generate the dropdown.

@return string
Generate the dropdown .