interface DataStreamStorageInterface in farmOS 2.x
The DataStreamStorageInterface.
A common interface for acting with the DataStream storage.
Hierarchy
- interface \Drupal\data_stream\DataStreamStorageInterface
Expanded class hierarchy of DataStreamStorageInterface
All classes that implement DataStreamStorageInterface
1 file declares its use of DataStreamStorageInterface
- DataStreamCreationTrait.php in modules/
core/ data_stream/ tests/ src/ Traits/ DataStreamCreationTrait.php
File
- modules/
core/ data_stream/ src/ DataStreamStorageInterface.php, line 12
Namespace
Drupal\data_streamView source
interface DataStreamStorageInterface {
/**
* Get data from the DataStream storage.
*
* @param \Drupal\data_stream\Entity\DataStreamInterface $stream
* The DataStream entity.
* @param array $params
* Parameters.
*
* @return array
* Array of data.
*/
public function storageGet(DataStreamInterface $stream, array $params);
/**
* Save data to the DataStream storage.
*
* @param \Drupal\data_stream\Entity\DataStreamInterface $stream
* The DataStream entity.
* @param array $data
* Data to save.
*
* @return bool
* Success.
*/
public function storageSave(DataStreamInterface $stream, array $data);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataStreamStorageInterface:: |
public | function | Get data from the DataStream storage. | |
DataStreamStorageInterface:: |
public | function | Save data to the DataStream storage. |