public static function FileUploadForm::trustedCallbacks in Media Directories 8
Same name and namespace in other branches
- 2.x modules/media_directories_ui/src/Form/FileUploadForm.php \Drupal\media_directories_ui\Form\FileUploadForm::trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().
Return value
string[] List of method names implemented by the class that can be used as trusted callbacks.
Overrides TrustedCallbackInterface::trustedCallbacks
See also
\Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback()
File
- modules/
media_directories_ui/ src/ Form/ FileUploadForm.php, line 32
Class
- FileUploadForm
- A form to upload files.
Namespace
Drupal\media_directories_ui\FormCode
public static function trustedCallbacks() {
return [
'preRenderUploadElement',
];
}