protected function _commandEdit($command)
    {
        $entity = $this->getController()->getItem();
        $view = $this->getController()->getView()->getName();

        $layout = pick($command->layout, 'edit');

        $command->append(array('label' => AnTranslator::_('LIB-AN-ACTION-EDIT')))
        ->href($entity->getURL().'&layout='.$layout)
        ->setAttribute('data-action', 'edit');
    }
protected function _commandEdit($command)
    {
        $entity = $this->getController()->getItem();
        $view = $this->getController()->getView()->getName();

        $layout = pick($command->layout, 'edit');

        $command->append(array('label' => AnTranslator::_('LIB-AN-ACTION-EDIT')))
        ->href($entity->getURL().'&layout='.$layout)
        ->setAttribute('data-action', 'edit');
    }
protected function _commandEdit ( $ command ) { $ entity = $ this -> getController ( ) -> getItem ( ) ; $ view = $ this -> getController ( ) -> getView ( ) -> getName ( ) ; $ layout = pick ( $ command -> layout , 'edit' ) ; $ command -> append ( array ( 'label' => AnTranslator :: _ ( 'LIB-AN-ACTION-EDIT' ) ) ) -> href ( $ entity -> getURL ( ) . '&layout=' . $ layout ) -> setAttribute ( 'data-action' , 'edit' ) ; }
Edit Command for an entity.

@param LibBaseTemplateObject $command The action object
Edit Command for an entity .