You are here

DiscoverableInterface.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/lib/Drupal/Component/Discovery/DiscoverableInterface.php

File

core/lib/Drupal/Component/Discovery/DiscoverableInterface.php
View source
<?php

namespace Drupal\Component\Discovery;


/**
 * Interface for classes providing a type of discovery.
 */
interface DiscoverableInterface {

  /**
   * Returns an array of discoverable items.
   *
   * @return array
   *   An array of discovered data keyed by provider.
   *
   * @throws \Drupal\Component\Discovery\DiscoveryException
   *   Exception thrown if there is a problem during discovery.
   */
  public function findAll();

}

Interfaces

Namesort descending Description
DiscoverableInterface Interface for classes providing a type of discovery.