public function dropdown($commands, $config = array())
    {
        $config['commands'] = $commands;

        if (!isset($config['icon'])) {
            $config['icon'] = 'cog';
        }

        return $this->_render('dropdown', $config);
    }
public function dropdown($commands, $config = array())
    {
        $config['commands'] = $commands;

        if (!isset($config['icon'])) {
            $config['icon'] = 'cog';
        }

        return $this->_render('dropdown', $config);
    }
public function dropdown ( $ commands , $ config = array ( ) ) { $ config [ 'commands' ] = $ commands ; if ( ! isset ( $ config [ 'icon' ] ) ) { $ config [ 'icon' ] = 'cog' ; } return $ this -> _render ( 'dropdown' , $ config ) ; }
Creates a dropdown from a list of commands.

@param LibBaseTemplateObjectContainer $commands Container of commands
@param array                          $config   Configuration array

@return string
Creates a dropdown from a list of commands .