You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
656B

  1. <?php
  2. namespace domain\Setting\SettingDetails\Producer;
  3. use domain\Setting\SettingDefinition;
  4. class ProducerSettingDefinition extends SettingDefinition
  5. {
  6. const SECTION_GENERAL = 'general';
  7. const SUBSECTION_GENERAL = 'general.main';
  8. public function getSettings(): array
  9. {
  10. return [
  11. self::SECTION_GENERAL => [
  12. self::SUBSECTION_GENERAL => [
  13. // ...
  14. ]
  15. ]
  16. ];
  17. }
  18. public function getSectionLabels(): array
  19. {
  20. return [
  21. self::SECTION_GENERAL => 'General',
  22. self::SUBSECTION_GENERAL => 'General',
  23. ];
  24. }
  25. }