public function Delete::opDelete in IMCE 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImcePlugin/Delete.php \Drupal\imce\Plugin\ImcePlugin\Delete::opDelete()
Operation handler: delete.
File
- src/
Plugin/ ImcePlugin/ Delete.php, line 46
Class
- Delete
- Defines Imce Delete plugin.
Namespace
Drupal\imce\Plugin\ImcePluginCode
public function opDelete(ImceFM $fm) {
$items = $fm
->getSelection();
if ($this
->validateDelete($fm, $items)) {
$this
->deleteItems($fm, $items);
}
}