function FileItemValidationTest::getFileTypes
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/FileItemValidationTest.php \Drupal\Tests\file\Kernel\FileItemValidationTest::getFileTypes()
- 8.9.x core/modules/file/tests/src/Kernel/FileItemValidationTest.php \Drupal\Tests\file\Kernel\FileItemValidationTest::getFileTypes()
- 10 core/modules/file/tests/src/Kernel/FileItemValidationTest.php \Drupal\Tests\file\Kernel\FileItemValidationTest::getFileTypes()
Provides a list of file types to test.
File
-
core/
modules/ file/ tests/ src/ Kernel/ FileItemValidationTest.php, line 133
Class
- FileItemValidationTest
- Tests that files referenced in file and image fields are always validated.
Namespace
Drupal\Tests\file\KernelCode
public static function getFileTypes() {
return [
[
'file',
],
[
'image',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.