Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DiscoveryStrategy.php

interface DiscoveryStrategy

@author Tobias Nyholm <tobias.nyholm@gmail.com>

Hierarchy

  • interface \Http\Discovery\Strategy\DiscoveryStrategy

Expanded class hierarchy of DiscoveryStrategy

All classes that implement DiscoveryStrategy

1 file declares its use of DiscoveryStrategy
ClassDiscovery.php in vendor/php-http/discovery/src/ClassDiscovery.php

File

vendor/php-http/discovery/src/Strategy/DiscoveryStrategy.php, line 10

Namespace

Http\Discovery\Strategy
View source
interface DiscoveryStrategy {
    
    /**
     * Find a resource of a specific type.
     *
     * @param string $type
     *
     * @return array The return value is always an array with zero or more elements. Each
     *               element is an array with two keys ['class' => string, 'condition' => mixed].
     *
     * @throws StrategyUnavailableException if we cannot use this strategy
     */
    public static function getCandidates($type);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DiscoveryStrategy::getCandidates public static function Find a resource of a specific type. 4

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal