Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileUploadSanitizeNameEvent.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal