You are here

public function MediaExpireCommands::expireCheck in Media Expire 8.2

Checks for expired media.

@command media:expire-check @aliases mec,media-expire-check

File

src/Commands/MediaExpireCommands.php, line 37

Class

MediaExpireCommands
Defines Drush commands for the media_expire module.

Namespace

Drupal\media_expire\Commands

Code

public function expireCheck() {
  $this->mediaExpireService
    ->unpublishExpiredMedia();
}