class Subrequest in Subrequests 8.2
Same name and namespace in other branches
- 3.x src/Subrequest.php \Drupal\subrequests\Subrequest
Value object containing a Subrequest.
Hierarchy
- class \Drupal\subrequests\Subrequest
Expanded class hierarchy of Subrequest
7 files declare their use of Subrequest
- JsonBlueprintDenormalizer.php in src/
Normalizer/ JsonBlueprintDenormalizer.php - JsonBlueprintDenormalizerTest.php in tests/
src/ Unit/ Normalizer/ JsonBlueprintDenormalizerTest.php - JsonPathReplacerTest.php in tests/
src/ Unit/ JsonPathReplacerTest.php - JsonSubrequestDenormalizer.php in src/
Normalizer/ JsonSubrequestDenormalizer.php - JsonSubrequestDenormalizerTest.php in tests/
src/ Unit/ Normalizer/ JsonSubrequestDenormalizerTest.php
File
- src/
Subrequest.php, line 8
Namespace
Drupal\subrequestsView source
class Subrequest {
/**
* The request ID.
*
* @var string
*/
public $requestId;
/**
* The parsed JSON.
*
* @var array
*/
public $body;
/**
* Array of key values.
*
* @var array
*/
public $headers;
/**
* The parent subrequests.
*
* @var string[]
*/
public $waitFor;
/**
* Is the subrequest resolved?
*
* @var bool
*/
public $_resolved;
/**
* The URI to request.
*
* @var string
*/
public $uri;
/**
* The action to perform.
*
* @var string
*/
public $action;
public function __construct($values) {
$this->requestId = $values['requestId'];
$this->body = $values['body'];
$this->headers = $values['headers'];
$this->waitFor = $values['waitFor'];
$this->_resolved = $values['_resolved'];
$this->uri = $values['uri'];
$this->action = $values['action'];
}
public function __toString() {
return serialize($this);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Subrequest:: |
public | property | The action to perform. | |
Subrequest:: |
public | property | The parsed JSON. | |
Subrequest:: |
public | property | Array of key values. | |
Subrequest:: |
public | property | The request ID. | |
Subrequest:: |
public | property | The URI to request. | |
Subrequest:: |
public | property | The parent subrequests. | |
Subrequest:: |
public | property | Is the subrequest resolved? | |
Subrequest:: |
public | function | ||
Subrequest:: |
public | function |