function FileItemValidationTest::getFileTypes
Same name in other branches
- 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()
- 11.x 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 132
Class
- FileItemValidationTest
- Tests that files referenced in file and image fields are always validated.
Namespace
Drupal\Tests\file\KernelCode
public function getFileTypes() {
return [
[
'file',
],
[
'image',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.