'inline']; protected function assembleElements() { $this->addElement($this->createRedirectOption()); } protected function assembleSubmitButton() { $this->addElement( 'submitButton', 'btn_submit', [ 'class' => ['cancel-button', 'spinner'], 'label' => [ new Icon('trash'), tp('Delete downtime', 'Delete downtimes', count($this->getObjects())) ] ] ); } protected function getCommand(Model $object) { if (! $this->isGrantedOn('icingadb/command/downtime/delete', $object->{$object->object_type})) { return null; } $command = new DeleteDowntimeCommand(); $command->setDowntimeName($object->name); $command->setAuthor($this->getAuth()->getUser()->getUsername()); return $command; } }