You are here

public function Cache::execute in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 modules/jsonrpc_core/src/Plugin/jsonrpc/Method/Cache.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\Cache::execute()

Executes the action with the parameters passed in.

Parameters

\Drupal\jsonrpc\Object\ParameterBag $params: The parameters.

Return value

mixed The result of the execution.

Overrides ExecutableWithParamsInterface::execute

File

modules/jsonrpc_core/src/Plugin/jsonrpc/Method/Cache.php, line 22

Class

Cache
Class CacheService.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public function execute(ParameterBag $params) {
  drupal_flush_all_caches();
  return TRUE;
}