protected function _commandDelete($command)
    {
        $entity = $this->getController()->getItem();
        $link = 'option=com_stories&view=story';

        foreach ($entity->getIds() as $id) {
            $link .= '&id[]='.$id;
        }

        $command->append(array('label' => AnTranslator::_('LIB-AN-ACTION-DELETE')))
        ->href(route($link))
        ->setAttribute('data-action', 'delete')
        ->class('action-delete');
    }
protected function _commandDelete($command)
    {
        $entity = $this->getController()->getItem();
        $link = 'option=com_stories&view=story';

        foreach ($entity->getIds() as $id) {
            $link .= '&id[]='.$id;
        }

        $command->append(array('label' => AnTranslator::_('LIB-AN-ACTION-DELETE')))
        ->href(route($link))
        ->setAttribute('data-action', 'delete')
        ->class('action-delete');
    }
protected function _commandDelete ( $ command ) { $ entity = $ this -> getController ( ) -> getItem ( ) ; $ link = 'option=com_stories&view=story' ; foreach ( $ entity -> getIds ( ) as $ id ) { $ link .= '&id[]=' . $ id ; } $ command -> append ( array ( 'label' => AnTranslator :: _ ( 'LIB-AN-ACTION-DELETE' ) ) ) -> href ( route ( $ link ) ) -> setAttribute ( 'data-action' , 'delete' ) -> class ( 'action-delete' ) ; }
Delete Command for a story.

@param LibBaseTemplateObject $command The command object
Delete Command for a story .