Esempio n. 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();
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function getLastChild()
 {
     return $this->children->last();
 }