public function ResourceDecoratorBase::doGet in RESTful 7.2
Shorthand method to perform a quick GET request.
Parameters
string $path: The resource path.
array $query: The parsed query string.
Return value
array The array ready for the formatter.
Overrides ResourceInterface::doGet
File
- src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php, line 333 - Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.
Class
- ResourceDecoratorBase
- Class ResourceDecoratorBase.
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function doGet($path = '', array $query = array()) {
$this
->setPath($path);
$this
->setRequest(Request::create($this
->versionedUrl($path, array(
'absolute' => FALSE,
)), $query, RequestInterface::METHOD_GET));
return $this
->process();
}