You are here

ExecutableWithParamsInterface.php in JSON-RPC 8

Same filename and directory in other branches
  1. 2.x src/ExecutableWithParamsInterface.php

Namespace

Drupal\jsonrpc

File

src/ExecutableWithParamsInterface.php
View source
<?php

namespace Drupal\jsonrpc;

use Drupal\jsonrpc\Object\ParameterBag;

/**
 * Add to methods that can be executed with params.
 */
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);

}

Interfaces

Namesort descending Description
ExecutableWithParamsInterface Add to methods that can be executed with params.