FileAudioFormatter.php

Namespace

Drupal\file\Plugin\Field\FieldFormatter

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileAudioFormatter.php

View source
<?php

namespace Drupal\file\Plugin\Field\FieldFormatter;

use Drupal\Core\Field\Attribute\FieldFormatter;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Plugin implementation of the 'file_audio' formatter.
 */
class FileAudioFormatter extends FileMediaFormatterBase {
  
  /**
   * {@inheritdoc}
   */
  public static function getMediaType() {
    return 'audio';
  }

}

Classes

Title Deprecated Summary
FileAudioFormatter Plugin implementation of the 'file_audio' formatter.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.