ConfigInterface.php 551 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Event configuration model interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Event;
  9. /**
  10. * Interface \Magento\Framework\Event\ConfigInterface
  11. *
  12. */
  13. interface ConfigInterface
  14. {
  15. /**#@+
  16. * Event types
  17. */
  18. const TYPE_CORE = 'core';
  19. const TYPE_CUSTOM = 'custom';
  20. /**#@-*/
  21. /**
  22. * Get observers by event name
  23. *
  24. * @param string $eventName
  25. * @return array
  26. */
  27. public function getObservers($eventName);
  28. }