You are here

DataStreamTypeInterface.php in farmOS 2.x

File

modules/core/data_stream/src/Plugin/DataStream/DataStreamType/DataStreamTypeInterface.php
View source
<?php

namespace Drupal\data_stream\Plugin\DataStream\DataStreamType;

use Drupal\entity\BundlePlugin\BundlePluginInterface;

/**
 * Defines the interface for data stream types.
 */
interface DataStreamTypeInterface extends BundlePluginInterface {

  /**
   * Gets the data stream type label.
   *
   * @return string
   *   The data stream type label.
   */
  public function getLabel();

  /**
   * Returns views data for the data stream type.
   *
   * @see \Drupal\views\EntityViewsData::getViewsData()
   *
   * @return array
   *   Views data in the format of hook_views_data().
   */
  public function getViewsData();

}

Interfaces

Namesort descending Description
DataStreamTypeInterface Defines the interface for data stream types.