Skip to content
Snippets Groups Projects
Commit a2955cf6 authored by Adriano Cori's avatar Adriano Cori
Browse files

Added public methods to the HttpConfigRequestInterface

parent 4923510e
No related branches found
No related tags found
No related merge requests found
......@@ -88,10 +88,7 @@ class HttpConfigRequest extends ConfigEntityBase implements HttpConfigRequestInt
}
/**
* Executes configured Http Request.
*
* @return mixed
* The command response.
* {@inheritdoc}
*/
public function execute() {
$factory = \Drupal::service('http_client_manager.factory');
......@@ -101,10 +98,7 @@ class HttpConfigRequest extends ConfigEntityBase implements HttpConfigRequestInt
}
/**
* Get configured command parameters.
*
* @return array
* An array of parameters.
* {@inheritdoc}
*/
public function getParameters() {
$parameters = $this->get('parameters');
......
......@@ -9,4 +9,20 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface;
*/
interface HttpConfigRequestInterface extends ConfigEntityInterface {
/**
* Executes configured Http Request.
*
* @return mixed
* The command response.
*/
public function execute();
/**
* Get configured command parameters.
*
* @return array
* An array of parameters.
*/
public function getParameters();
}
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