public function MediaExpireService::__construct in Media Expire 8
Same name and namespace in other branches
- 8.2 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\Query\QueryFactory $queryFactory: The query factory service.
File
- src/
MediaExpireService.php, line 38
Class
- MediaExpireService
- Contains the media unpublish logic.
Namespace
Drupal\media_expireCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $queryFactory) {
$this->entityTypeManager = $entity_type_manager;
$this->queryFactory = $queryFactory;
}