You are here

public function Resource::process in RESTful 7.2

Controller function that passes the data along and executes right action.

Return value

array An structured array with the response data.

Throws

\Drupal\restful\Exception\NotImplementedException If no controller can be found.

\Drupal\restful\Exception\ForbiddenException If access is denied for the operation.

Overrides ResourceInterface::process

3 calls to Resource::process()
Resource::doDelete in src/Plugin/resource/Resource.php
Shorthand method to perform a quick DELETE request.
Resource::doGet in src/Plugin/resource/Resource.php
Shorthand method to perform a quick GET request.
Resource::doWrite in src/Plugin/resource/Resource.php

File

src/Plugin/resource/Resource.php, line 241
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function process() {
  $path = $this
    ->getPath();
  return ResourceManager::executeCallback($this
    ->getControllerFromPath($path), array(
    $path,
  ));
}