WordPress\AiClientDependencies\Http\Discovery\Strategy
CommonPsr17ClassesStrategy::getCandidates
Метод класса: CommonPsr17ClassesStrategy{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = CommonPsr17ClassesStrategy::getCandidates( $type );
- $type(обязательный)
- .
Код CommonPsr17ClassesStrategy::getCandidates() CommonPsr17ClassesStrategy::getCandidates WP 7.1.3
public static function getCandidates($type)
{
$candidates = [];
if (isset(self::$classes[$type])) {
foreach (self::$classes[$type] as $class) {
$candidates[] = ['class' => $class, 'condition' => [$class]];
}
}
return $candidates;
}