You are here

public function CacheDecoratedResource::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 ResourceDecoratorBase::process

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 166
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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