You are here

public function FileMetadataInterface::saveMetadataToCache in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 src/FileMetadataInterface.php \Drupal\file_mdm\FileMetadataInterface::saveMetadataToCache()

Caches metadata for file at URI.

Uses the 'file_mdm' cache bin.

Parameters

string $metadata_id: The id of the FileMetadata plugin.

array $tags: (optional) An array of cache tags to save to cache.

Return value

bool TRUE if metadata was saved successfully, FALSE otherwise.

1 method overrides FileMetadataInterface::saveMetadataToCache()
FileMetadata::saveMetadataToCache in src/FileMetadata.php
Caches metadata for file at URI.

File

src/FileMetadataInterface.php, line 195

Class

FileMetadataInterface
Provides an interface for file metadata objects.

Namespace

Drupal\file_mdm

Code

public function saveMetadataToCache($metadata_id, array $tags = []);