You are here

public function Cache::execute in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x 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;
}