You are here

public function MediaHelper::__construct in Lightning Media 8

Same name and namespace in other branches
  1. 8.4 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()
  2. 8.2 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()
  3. 8.3 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()

MediaHelper constructor.

Parameters

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

File

src/MediaHelper.php, line 29

Class

MediaHelper
Provides helper methods for dealing with media entities.

Namespace

Drupal\lightning_media

Code

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