You are here

public function DrupalCacheAdapter::updateStream in Flysystem 8

Same name and namespace in other branches
  1. 3.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::updateStream()
  2. 2.0.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::updateStream()
  3. 3.0.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::updateStream()

File

src/Flysystem/Adapter/DrupalCacheAdapter.php, line 80

Class

DrupalCacheAdapter
A Flysystem adapter implementing caching with Drupal's Cache API.

Namespace

Drupal\flysystem\Flysystem\Adapter

Code

public function updateStream($path, $resource, Config $config) {
  $metadata = $this->adapter
    ->updateStream($path, $resource, $config);
  return $this
    ->updateMetadata($path, $metadata);
}