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

Breadcrumb

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

function FileUploadSanitizeNameEvent::stopPropagation

Throws

\RuntimeException Thrown whenever this method is called. This event should always be fully processed so that SecurityFileUploadEventSubscriber::sanitizeName() gets a chance to run.

See also

\Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber

File

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

Class

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

Namespace

Drupal\Core\File\Event

Code

public function stopPropagation() : void {
    throw new \RuntimeException('Propagation cannot be stopped for the FileUploadSanitizeNameEvent');
}

API Navigation

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