You are here

function preview_link_cron in Preview Link 2.0.x

Same name and namespace in other branches
  1. 8 preview_link.module \preview_link_cron()
  2. 2.x preview_link.module \preview_link_cron()

Implements hook_cron().

1 call to preview_link_cron()
PreviewLinkExpiryTest::testPreviewLinkExpires in tests/src/Kernel/PreviewLinkExpiryTest.php
Test preview links are automatically expired on cron.

File

./preview_link.module, line 42
Module file.

Code

function preview_link_cron() : void {
  \Drupal::classResolver(PreviewLinkHooks::class)
    ->cron();
}