protected function _commandDeleteLocation($command)
    {
        $location = $this->getController()->getItem();
        $locatable = $command->locatable;

        $command->setAttribute('data-action', 'deleteLocation')
        ->setAttribute('data-location', $location->id)
        ->href($locatable->getURL());

        $command->label = translate('LIB-AN-ACTION-DELETE');
    }
protected function _commandDeleteLocation($command)
    {
        $location = $this->getController()->getItem();
        $locatable = $command->locatable;

        $command->setAttribute('data-action', 'deleteLocation')
        ->setAttribute('data-location', $location->id)
        ->href($locatable->getURL());

        $command->label = translate('LIB-AN-ACTION-DELETE');
    }
protected function _commandDeleteLocation ( $ command ) { $ location = $ this -> getController ( ) -> getItem ( ) ; $ locatable = $ command -> locatable ; $ command -> setAttribute ( 'data-action' , 'deleteLocation' ) -> setAttribute ( 'data-location' , $ location -> id ) -> href ( $ locatable -> getURL ( ) ) ; $ command -> label = translate ( 'LIB-AN-ACTION-DELETE' ) ; }
Delete a location from a locatable entity

@param LibBaseTemplateObject $command The action object
Delete a location from a locatable entity