You are here

public function ServiceDefinitionInterface::processRequest in Services 8.4

Same name and namespace in other branches
  1. 9.0.x src/ServiceDefinitionInterface.php \Drupal\services\ServiceDefinitionInterface::processRequest()

Processes the request and returns an array of data as appropriate.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object.

\Symfony\Component\Serializer\SerializerInterface $serializer: The serializer. Some methods might require the plugin to leverage the serializer after extracting the request contents.

Return value

array The response.

Throws

\Symfony\Component\HttpKernel\Exception\HttpException

10 methods override ServiceDefinitionInterface::processRequest()
AliasGet::processRequest in src/Plugin/ServiceDefinition/AliasGet.php
Processes the request and returns an array of data as appropriate.
EntityDelete::processRequest in src/Plugin/ServiceDefinition/EntityDelete.php
Processes the request and returns an array of data as appropriate.
EntityGet::processRequest in src/Plugin/ServiceDefinition/EntityGet.php
Processes the request and returns an array of data as appropriate.
EntityIndex::processRequest in src/Plugin/ServiceDefinition/EntityIndex.php
Processes the request and returns an array of data as appropriate.
EntityView::processRequest in src/Plugin/ServiceDefinition/EntityView.php
Processes the request and returns an array of data as appropriate.

... See full list

File

src/ServiceDefinitionInterface.php, line 91

Class

ServiceDefinitionInterface
Interface \Drupal\services\ServiceDefinitionInterface.

Namespace

Drupal\services

Code

public function processRequest(Request $request, RouteMatchInterface $route_match, SerializerInterface $serializer);