protected function ImceFM::initSelection in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceFM.php \Drupal\imce\ImceFM::initSelection()
Initiates the selection with a list of user provided item paths.
1 call to ImceFM::initSelection()
- ImceFM::init in src/
ImceFM.php - Initializes the file manager.
File
- src/
ImceFM.php, line 185
Class
- ImceFM
- Imce File Manager.
Namespace
Drupal\imceCode
protected function initSelection() {
$paths = $this
->getPost('selection');
if ($paths && is_array($paths)) {
foreach ($paths as $path) {
if ($item = $this
->checkItem($path)) {
$item
->select();
}
else {
$this
->removePathFromJs($path);
}
}
}
}