code/libraries/joomlatools/library/controller/toolbar/actionbar.php
protected function _afterBrowse(KControllerContextInterface $context)
    {
        $controller = $this->getController();

        if($controller->canAdd()) {
            $this->addCommand('new');
        }

        if($controller->canDelete()) {
            $this->addCommand('delete');
        }
    }
protected function _afterBrowse(KControllerContextInterface $context)
    {
        $controller = $this->getController();

        if($controller->canAdd()) {
            $this->addCommand('new');
        }

        if($controller->canDelete()) {
            $this->addCommand('delete');
        }
    }
protected function _afterBrowse ( KControllerContextInterface $ context ) { $ controller = $ this -> getController ( ) ; if ( $ controller -> canAdd ( ) ) { $ this -> addCommand ( 'new' ) ; } if ( $ controller -> canDelete ( ) ) { $ this -> addCommand ( 'delete' ) ; } }
Add default action commands
.
@param KControllerContextInterface $context A command context object
Add default action commands .