You are here

public function ImceItem::remove in IMCE 8

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

Removes the item from its parent.

File

src/ImceItem.php, line 118

Class

ImceItem
Imce Item.

Namespace

Drupal\imce

Code

public function remove() {
  if ($this->parent) {
    $this->parent
      ->removeItem($this);
  }
}