src/Netzmacht/Bootstrap/Buttons/Factory.php
protected static function enableToolbar($root)
    {
        if (!$root instanceof Toolbar) {
            $group = $root;
            $root  = static::createToolbar(array(), true);

            if ($group instanceof Group && $group->getChildren()) {
                $root->addChild($group);
            }
        }

        return $root;
    }
protected static function enableToolbar($root)
    {
        if (!$root instanceof Toolbar) {
            $group = $root;
            $root  = static::createToolbar(array(), true);

            if ($group instanceof Group && $group->getChildren()) {
                $root->addChild($group);
            }
        }

        return $root;
    }
protected static function enableToolbar ( $ root ) { if ( ! $ root instanceof Toolbar ) { $ group = $ root ; $ root = static :: createToolbar ( array ( ) , true ) ; if ( $ group instanceof Group && $ group -> getChildren ( ) ) { $ root -> addChild ( $ group ) ; } } return $ root ; }
Enable the toolbar.

@param mixed $root Current root element.

@return Toolbar
Enable the toolbar .