You are here

function media_expire_cron in Media Expire 8

Same name and namespace in other branches
  1. 8.2 media_expire.module \media_expire_cron()

Implements hook_cron().

File

./media_expire.module, line 133
The Media Expires Drupal module.

Code

function media_expire_cron() {

  /** @var \Drupal\media_expire\MediaExpireService $service */
  $service = \Drupal::service('media_expire.service');
  $service
    ->unpublishExpiredMedia();
}