function FileItemValidationTest::getFileTypes

Provides a list of file types to test.

File

core/modules/file/tests/src/Kernel/FileItemValidationTest.php, line 132

Class

FileItemValidationTest
Tests that files referenced in file and image fields are always validated.

Namespace

Drupal\Tests\file\Kernel

Code

public function getFileTypes() {
  return [
    [
      'file',
    ],
    [
      'image',
    ],
  ];
}

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