DiscoverableInterface.php 441 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Component\Discovery;
  3. /**
  4. * Interface for classes providing a type of discovery.
  5. */
  6. interface DiscoverableInterface {
  7. /**
  8. * Returns an array of discoverable items.
  9. *
  10. * @return array
  11. * An array of discovered data keyed by provider.
  12. *
  13. * @throws \Drupal\Component\Discovery\DiscoveryException
  14. * Exception thrown if there is a problem during discovery.
  15. */
  16. public function findAll();
  17. }