PageFormInterface.php 710 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Grav\Common\Page\Interfaces;
  3. /**
  4. * Interface PageFormInterface
  5. * @package Grav\Common\Page\Interfaces
  6. */
  7. interface PageFormInterface
  8. {
  9. /**
  10. * Return all the forms which are associated to this page.
  11. *
  12. * Forms are returned as [name => blueprint, ...], where blueprint follows the regular form blueprint format.
  13. *
  14. * @return array
  15. */
  16. //public function getForms(): array;
  17. /**
  18. * Add forms to this page.
  19. *
  20. * @param array $new
  21. * @return $this
  22. */
  23. public function addForms(array $new/*, $override = true*/);
  24. /**
  25. * Alias of $this->getForms();
  26. *
  27. * @return array
  28. */
  29. public function forms();//: array;
  30. }