You are here

public function MediaEntityHelper::__construct in Media: Acquia DAM 8

MediaEntityHelper constructor.

Parameters

\Drupal\media\MediaInterface $media: The media entity to wrap.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Type Manager service.

\Drupal\media_acquiadam\AssetDataInterface $assetData: Media: Acquia DAM asset data service.

\Drupal\media_acquiadam\AcquiadamInterface $acquiaDamClient: Media: Acquia DAM client.

\Drupal\media_acquiadam\Service\AssetFileEntityHelper $assetFileHelper: Media: Acquia DAM file entity helper service.

File

src/MediaEntityHelper.php, line 67

Class

MediaEntityHelper
Class MediaEntityHelper.

Namespace

Drupal\media_acquiadam

Code

public function __construct(MediaInterface $media, EntityTypeManagerInterface $entityTypeManager, AssetDataInterface $assetData, AcquiadamInterface $acquiaDamClient, AssetFileEntityHelper $assetFileHelper) {
  $this->entityTypeManager = $entityTypeManager;
  $this->assetData = $assetData;
  $this->acquiaDamClient = $acquiaDamClient;
  $this->assetFileHelper = $assetFileHelper;
  $this->mediaEntity = $media;
}