Skip to content

Kirby 3.8.4

File versions

/site/plugins/file-urls/index.php
Kirby::plugin('my/fileVersions', [
  'components' => [
    'file::version' => function (Kirby $kirby, FileModifications $file, array $options = []) {
      // …
      return new FileVersion([
        // …
      ]);
    }
  ]
]);