You are here

public function Delete::validateDelete in IMCE 8.2

Same name and namespace in other branches
  1. 8 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\ImcePlugin

Code

public function validateDelete(ImceFM $fm, array $items) {
  return $items && $fm
    ->validatePermissions($items, 'delete_files', 'delete_subfolders') && $fm
    ->validatePredefinedPath($items);
}