Skip to content

Kirby 5.0.4

$lock->modified()

Returns the timestamp when the locked content has been updated. You can pass a format to get a useful, formatted date back.

$lock->modified() 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.

$lock->modified(string|null $format = null, string|null $handler = null): string|int|false|null

Parameters

Name Type Default
$format stringornull null
$handler stringornull null

Return types

stringorintorfalseornull

This method modifies the existing $lock object it is applied to and returns it again.

Parent class

Kirby\Content\Lock