You are here

public function AssetMediaFactory::getAssetMediaEntityHelperClass in Media: Acquia DAM 8

Get the media entity helper class name.

Return value

string The name of the class to use when wrapping media entities.

1 call to AssetMediaFactory::getAssetMediaEntityHelperClass()
AssetMediaFactory::get in src/Service/AssetMediaFactory.php
Wrap a media entity with a helper to enable asset functionality.

File

src/Service/AssetMediaFactory.php, line 266

Class

AssetMediaFactory
Class AssetMediaFactory.

Namespace

Drupal\media_acquiadam\Service

Code

public function getAssetMediaEntityHelperClass() {
  if (!empty($this->mediaEntityHelperClass) && class_exists($this->mediaEntityHelperClass)) {
    return $this->mediaEntityHelperClass;
  }
  return MediaEntityHelper::class;
}