You are here

public function ImceItem::getPath in IMCE 8

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

Returns the item path relative to the root.

2 calls to ImceItem::getPath()
ImceFolder::appendItem in src/ImceFolder.php
Appends an item to the item list.
ImceItem::getUri in src/ImceItem.php
Returns the item uri.

File

src/ImceItem.php, line 79

Class

ImceItem
Imce Item.

Namespace

Drupal\imce

Code

public function getPath() {
  if (isset($this->path)) {
    return $this->path;
  }
  if ($this->parent) {
    $path = $this->parent
      ->getPath();
    if (isset($path)) {
      return Imce::joinPaths($path, $this->name);
    }
  }
}