Skip to content

Kirby 5.0.4

$page->modified()

Returns the last modification date of the page

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

Parameters

Name Type Default
$format stringornull null
$handler stringornull null
$languageCode stringornull null

Return types

stringorintorfalseornull

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

Parent class

Kirby\Cms\Page

Examples

Last update: <?= $page->modified('d/m/Y H:i') ?>