You are here

public function BackupFile::setMeta in Backup and Migrate 5.0.x

Set a metadata value.

Parameters

string $key: The key for the metadata item.

mixed $value: The value for the metadata item.

Overrides BackupFileInterface::setMeta

2 calls to BackupFile::setMeta()
BackupFile::setMetaMultiple in src/Core/File/BackupFile.php
Set a metadata value.
ReadableStreamBackupFile::loadFileStats in src/Core/File/ReadableStreamBackupFile.php
Get info about the file and load them as metadata.

File

src/Core/File/BackupFile.php, line 70

Class

BackupFile
@package Drupal\backup_migrate\Core\File

Namespace

Drupal\backup_migrate\Core\File

Code

public function setMeta($key, $value) {
  $this->metadata[$key] = $value;
}