Skip to content
Snippets Groups Projects
Commit 9fb1c156 authored by Brandon Williams's avatar Brandon Williams Committed by Adriano
Browse files

Issue #3335484 by rocketeerbkw: Link HTTP config requests to their provider modules

parent b8f0e869
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,17 @@ class HttpConfigRequest extends ConfigEntityBase implements HttpConfigRequestInt
return !empty($parameters) ? array_filter($this->get('parameters')) : [];
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
parent::calculateDependencies();
$api_handler = \Drupal::service('http_client_manager.http_services_api');
$api_description = $api_handler->load($this->get('service_api'));
$this->addDependency('module', $api_description['provider']);
return $this;
}
/**
* Replace Tokens.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment