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