You are here

trait FileMimetypes in AmazonS3 7.2

Same name in this branch
  1. 7.2 tests/DrupalAdapter/FileMimetypes.php \Drupal\amazons3Test\DrupalAdapter\FileMimetypes
  2. 7.2 src/DrupalAdapter/FileMimetypes.php \Drupal\amazons3\DrupalAdapter\FileMimetypes

Methods that map to includes/file.mimetypes.inc.

@trait FileMimetypes @package Drupal\amazons3\DrupalAdapter @codeCoverageIgnore

Hierarchy

File

src/DrupalAdapter/FileMimetypes.php, line 12

Namespace

Drupal\amazons3\DrupalAdapter
View source
trait FileMimetypes {

  /**
   * @return array
   */
  public static function file_mimetype_mapping() {

    /** @noinspection PhpIncludeInspection */
    include_once DRUPAL_ROOT . '/includes/file.mimetypes.inc';
    return file_mimetype_mapping();
  }

}

Members