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

Breadcrumb

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

function DiscoveryStrategy::getCandidates

Find a resource of a specific type.

Parameters

string $type:

Return value

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

4 methods override DiscoveryStrategy::getCandidates()
CommonClassesStrategy::getCandidates in vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php
Find a resource of a specific type.
CommonPsr17ClassesStrategy::getCandidates in vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php
Find a resource of a specific type.
MockClientStrategy::getCandidates in vendor/php-http/discovery/src/Strategy/MockClientStrategy.php
Find a resource of a specific type.
PuliBetaStrategy::getCandidates in vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php
Find a resource of a specific type.

File

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

Class

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

Namespace

Http\Discovery\Strategy

Code

public static function getCandidates($type);

API Navigation

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