public function AssetFileEntityHelper::__construct in Media: Acquia DAM 8
AssetFileEntityHelper constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Type Manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity Field Manager service.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Drupal config factory.
\Drupal\Core\File\FileSystemInterface $fileSystem: Drupal filesystem service.
\Drupal\Core\Utility\Token $token: Drupal token service.
\Drupal\media_acquiadam\Service\AssetImageHelper $assetImageHelper: Media: Acquia DAM asset image helper service.
\Drupal\media_acquiadam\AcquiadamInterface $acquiaDamClient: Media: Acquia DAM client.
\Drupal\media_acquiadam\Service\AssetMediaFactory $assetMediaFactory: Media: Acquia DAM Asset Media Factory service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerChannelFactory: The Drupal LoggerChannelFactory service.
File
- src/
Service/ AssetFileEntityHelper.php, line 117
Class
- AssetFileEntityHelper
- Class AssetFileEntityHelper.
Namespace
Drupal\media_acquiadam\ServiceCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityFieldManagerInterface $entityFieldManager, ConfigFactoryInterface $configFactory, FileSystemInterface $fileSystem, Token $token, AssetImageHelper $assetImageHelper, AcquiadamInterface $acquiaDamClient, AssetMediaFactory $assetMediaFactory, LoggerChannelFactoryInterface $loggerChannelFactory) {
$this->entityTypeManager = $entityTypeManager;
$this->entityFieldManager = $entityFieldManager;
$this->configFactory = $configFactory;
$this->config = $configFactory
->get('media_acquiadam.settings');
$this->fileSystem = $fileSystem;
$this->token = $token;
$this->assetImageHelper = $assetImageHelper;
$this->acquiaDamClient = $acquiaDamClient;
$this->assetMediaFactory = $assetMediaFactory;
$this->loggerChannel = $loggerChannelFactory
->get('media_acquiadam');
}