You are here

function drush_media_expire_check in Media Expire 8

Same name and namespace in other branches
  1. 8.2 drush/media_expire.drush.inc \drush_media_expire_check()

Checks for expired media.

File

drush/media_expire.drush.inc, line 23
Drush integration for the media_expire module.

Code

function drush_media_expire_check() {

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