interface DataStreamApiInterface in farmOS 2.x
The DataStreamApiInterface.
An interface that allows data streams to be queried via the Drupal API.
Hierarchy
- interface \Drupal\data_stream\DataStreamApiInterface
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_streamView 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataStreamApiInterface:: |
public | function | Determine allowed HTTP methods. | |
DataStreamApiInterface:: |
public | function | Handle an API Request. |