You are here

protected function AssetImageHelper::saveFallbackThumbnail in Media: Acquia DAM 8

Saves the fallback thumbnail URI to the Media: Acquia DAM config.

This call is broken out for better flexibility when writing tests.

Parameters

string $uri: The URI to save as the fallback thumbnail.

1 call to AssetImageHelper::saveFallbackThumbnail()
AssetImageHelper::setFallbackThumbnail in src/Service/AssetImageHelper.php
Sets a new default fallback image.

File

src/Service/AssetImageHelper.php, line 290

Class

AssetImageHelper
Class AssetImageHelper.

Namespace

Drupal\media_acquiadam\Service

Code

protected function saveFallbackThumbnail($uri) {
  $this->configFactory
    ->getEditable('media_acquiadam.settings')
    ->set('fallback_thumbnail', $uri)
    ->save();
}