You are here

public function MediaExpireService::__construct in Media Expire 8.2

Same name and namespace in other branches
  1. 8 src/MediaExpireService.php \Drupal\media_expire\MediaExpireService::__construct()

Constructs the MediaExpireService.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

File

src/MediaExpireService.php, line 38

Class

MediaExpireService
Contains the media unpublish logic.

Namespace

Drupal\media_expire

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
}