Webiny\Component\Storage\Storage::supportsTouching PHP Method

supportsTouching() public method

Can this storage touch a file?
public supportsTouching ( ) : mixed
return mixed
    public function supportsTouching()
    {
        return $this->driver instanceof TouchableInterface;
    }

Usage Example

Esempio n. 1
0
 /**
  * Touch a file (change time modified)
  *
  * @return $this
  */
 public function touch()
 {
     if ($this->storage->supportsTouching()) {
         $this->storage->touchKey($this->key);
         $this->timeModified = null;
     }
     return $this;
 }