AbstractToolConfirm.php 470 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace UCore\DcatAdmin\Show;
  3. use Dcat\Admin\Show\AbstractTool;
  4. class AbstractToolConfirm extends AbstractTool
  5. {
  6. protected $confirm_title = '';
  7. protected $confirm_content = '';
  8. /**
  9. * @return string
  10. */
  11. public function title(): string
  12. {
  13. return __($this->title);
  14. }
  15. public function confirm()
  16. {
  17. return [
  18. __($this->confirm_title),
  19. __($this->confirm_content)
  20. ];
  21. }
  22. }