You are here

public function ImceFM::selectItem in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceFM.php \Drupal\imce\ImceFM::selectItem()

Selects an item.

File

src/ImceFM.php, line 398

Class

ImceFM
Imce File Manager.

Namespace

Drupal\imce

Code

public function selectItem(ImceItem $item) {
  if (!$item->selected && $item->parent) {
    $item->selected = TRUE;
    $this->selection[] = $item;
  }
}