You are here

VideoPlayerFormatterBase.php in Video 8

Same filename and directory in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/VideoPlayerFormatterBase.php

File

src/Plugin/Field/FieldFormatter/VideoPlayerFormatterBase.php
View source
<?php

namespace Drupal\video\Plugin\Field\FieldFormatter;

use Drupal\Core\Field\EntityReferenceFieldItemListInterface;
use Drupal\field\FieldConfigInterface;
use Drupal\file\Plugin\Field\FieldFormatter\FileFormatterBase;

/**
 * Base class for video player file formatters.
 */
abstract class VideoPlayerFormatterBase extends FileFormatterBase {

  /**
   * {@inheritdoc}
   */
  protected function getEntitiesToView(EntityReferenceFieldItemListInterface $items, $langcode) {
    return parent::getEntitiesToView($items, $langcode);
  }

}

Classes

Namesort descending Description
VideoPlayerFormatterBase Base class for video player file formatters.