You are here

interface ExecutableWithParamsInterface in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 src/ExecutableWithParamsInterface.php \Drupal\jsonrpc\ExecutableWithParamsInterface

Add to methods that can be executed with params.

Hierarchy

Expanded class hierarchy of ExecutableWithParamsInterface

All classes that implement ExecutableWithParamsInterface

1 file declares its use of ExecutableWithParamsInterface
JsonRpcMethodBase.php in src/Plugin/JsonRpcMethodBase.php

File

src/ExecutableWithParamsInterface.php, line 10

Namespace

Drupal\jsonrpc
View source
interface ExecutableWithParamsInterface {

  /**
   * Executes the action with the parameters passed in.
   *
   * @param \Drupal\jsonrpc\Object\ParameterBag $params
   *   The parameters.
   *
   * @return mixed
   *   The result of the execution.
   */
  public function execute(ParameterBag $params);

}

Members

Namesort descending Modifiers Type Description Overrides
ExecutableWithParamsInterface::execute public function Executes the action with the parameters passed in. 9