Skip to content

Kirby 5.0.4

$plainTextStorage->touch()

Updates the modification timestamp of an existing version

$plainTextStorage->touch() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$plainTextStorage->touch(Kirby\Content\VersionId $versionId, Kirby\Cms\Language $language): void

Parameters

Name Type Default
$versionIdrequired Kirby\Content\VersionId no default value
$languagerequired Kirby\Cms\Language no default value

Exceptions

Type Description
Kirby\Exception\Exception If the file cannot be touched

Parent class

Kirby\Content\PlainTextStorage