Example #1
0
 /**
  * Clear structure related internal caches like trail and level status.
  *
  * @internal
  */
 public function invalidateTrailStatusCache($deep = true)
 {
     $this->cachedTrailStatus = null;
     if ($deep && $this->children instanceof ItemCollection) {
         $this->children->invalidateTrailStatusCache();
     }
 }
 /**
  * @return ItemInterface
  */
 public function getParentItem()
 {
     return $this->collection->getParentItem();
 }