You are here

protected function HttpServiceApiHandler::getYamlDiscovery in HTTP Client Manager 8.2

Same name and namespace in other branches
  1. 8 src/HttpServiceApiHandler.php \Drupal\http_client_manager\HttpServiceApiHandler::getYamlDiscovery()

Gets the YAML discovery.

Return value

\Drupal\Component\Discovery\YamlDiscovery The YAML discovery.

File

src/HttpServiceApiHandler.php, line 95

Class

HttpServiceApiHandler
Class HttpServiceApiHandler.

Namespace

Drupal\http_client_manager

Code

protected function getYamlDiscovery() {
  if (!isset($this->yamlDiscovery)) {
    $this->yamlDiscovery = new YamlDiscovery('http_services_api', $this->moduleHandler
      ->getModuleDirectories());
  }
  return $this->yamlDiscovery;
}