You are here

DataStreamTypeBase.php in farmOS 2.x

File

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

namespace Drupal\data_stream\Plugin\DataStream\DataStreamType;

use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginBase;

/**
 * Provides the base data stream type class.
 */
abstract class DataStreamTypeBase extends PluginBase implements ContainerFactoryPluginInterface, DataStreamTypeInterface {

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return $this->pluginDefinition['label'];
  }

  /**
   * {@inheritdoc}
   */
  public function buildFieldDefinitions() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    return [];
  }

}

Classes

Namesort descending Description
DataStreamTypeBase Provides the base data stream type class.