addElement($this->createRedirectOption()); } protected function assembleSubmitButton() { $this->addElement( 'submitButton', 'btn_submit', [ 'class' => ['cancel-button', 'spinner'], 'label' => [ new Icon('trash'), tp('Remove Comment', 'Remove Comments', count($this->getObjects())) ] ] ); } protected function getCommand(Model $object) { $command = new DeleteCommentCommand(); $command->setCommentName($object->name); $command->setAuthor($this->getAuth()->getUser()->getUsername()); return $command; } }