You are here

public function FileUploadSanitizeNameEvent::getAllowedExtensions in Drupal 10

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php \Drupal\Core\File\Event\FileUploadSanitizeNameEvent::getAllowedExtensions()

Gets the list of allowed extensions.

Return value

string[] The list of allowed extensions.

File

core/lib/Drupal/Core/File/Event/FileUploadSanitizeNameEvent.php, line 87

Class

FileUploadSanitizeNameEvent
An event during file upload that lets subscribers sanitize the filename.

Namespace

Drupal\Core\File\Event

Code

public function getAllowedExtensions() : array {
  return $this->allowedExtensions;
}