You are here

interface DataStreamApiInterface in farmOS 2.x

The DataStreamApiInterface.

An interface that allows data streams to be queried via the Drupal API.

Hierarchy

Expanded class hierarchy of DataStreamApiInterface

All classes that implement DataStreamApiInterface

1 file declares its use of DataStreamApiInterface
DataStreamController.php in modules/core/data_stream/src/Controller/DataStreamController.php

File

modules/core/data_stream/src/DataStreamApiInterface.php, line 14

Namespace

Drupal\data_stream
View source
interface DataStreamApiInterface {

  /**
   * Determine allowed HTTP methods.
   *
   * @return array
   *   Allowed methods.
   */
  public function apiAllowedMethods();

  /**
   * Handle an API Request.
   *
   * @param \Drupal\data_stream\Entity\DataStreamInterface $stream
   *   The DataStream entity.
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The HTTP request.
   *
   * @return \Symfony\Component\HttpFoundation\Response
   *   The HTTP response.
   */
  public function apiHandleRequest(DataStreamInterface $stream, Request $request);

}

Members

Namesort descending Modifiers Type Description Overrides
DataStreamApiInterface::apiAllowedMethods public function Determine allowed HTTP methods.
DataStreamApiInterface::apiHandleRequest public function Handle an API Request.