public function Delete::validateDelete in IMCE 8
Same name and namespace in other branches
- 8.2 src/Plugin/ImcePlugin/Delete.php \Drupal\imce\Plugin\ImcePlugin\Delete::validateDelete()
Validates the deletion of the given items.
1 call to Delete::validateDelete()
- Delete::opDelete in src/
Plugin/ ImcePlugin/ Delete.php - Operation handler: delete.
File
- src/
Plugin/ ImcePlugin/ Delete.php, line 56
Class
- Delete
- Defines Imce Delete plugin.
Namespace
Drupal\imce\Plugin\ImcePluginCode
public function validateDelete(ImceFM $fm, array $items) {
return $items && $fm
->validatePermissions($items, 'delete_files', 'delete_subfolders') && $fm
->validatePredefinedPath($items);
}