You are here

interface DataStreamStorageInterface in farmOS 2.x

The DataStreamStorageInterface.

A common interface for acting with the DataStream storage.

Hierarchy

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_stream
View 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

Namesort descending Modifiers Type Description Overrides
DataStreamStorageInterface::storageGet public function Get data from the DataStream storage.
DataStreamStorageInterface::storageSave public function Save data to the DataStream storage.