function CKEditor5ImageController::generateLockIdFromFileUri
Same name in other branches
- 9 core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php \Drupal\ckeditor5\Controller\CKEditor5ImageController::generateLockIdFromFileUri()
- 10 core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php \Drupal\ckeditor5\Controller\CKEditor5ImageController::generateLockIdFromFileUri()
Generates a lock ID based on the file URI.
Parameters
string $file_uri: The file URI.
Return value
string The generated lock ID.
1 call to CKEditor5ImageController::generateLockIdFromFileUri()
- CKEditor5ImageController::upload in core/
modules/ ckeditor5/ src/ Controller/ CKEditor5ImageController.php - Uploads and saves an image from a CKEditor 5 POST.
File
-
core/
modules/ ckeditor5/ src/ Controller/ CKEditor5ImageController.php, line 199
Class
- CKEditor5ImageController
- Returns response for CKEditor 5 Simple image upload adapter.
Namespace
Drupal\ckeditor5\ControllerCode
protected static function generateLockIdFromFileUri($file_uri) {
return 'file:ckeditor5:' . Crypt::hashBase64($file_uri);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.