getRecentKey() public method

public getRecentKey ( )
Example #1
0
 /**
  * @inheritdoc
  */
 public function setContents($contents, $append = false)
 {
     $this->contents = $contents;
     if ($this->storage->setContents($this->key, $this->contents, $append) !== false) {
         $this->key = $this->storage->getRecentKey();
         $this->size = null;
         $this->eventManager()->fire(StorageEvent::FILE_SAVED, new StorageEvent($this));
         return true;
     }
     return false;
 }