Browse Source

getFilename as function instead of property (#814)

pull/815/head
Daniel Aitken 4 years ago committed by GitHub
parent
commit
6d11796be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/MediaSource/MediaSourceService.php

2
src/MediaSource/MediaSourceService.php

@ -320,7 +320,7 @@ class MediaSourceService {
// Set alt text.
if ($source_field_config->getSetting('alt_field') && $source_field_config->getSetting('alt_field_required')) {
$media_struct[$source_field]['alt'] = $file->getFilename;
$media_struct[$source_field]['alt'] = $file->getFilename();
}
$media = $this->entityTypeManager->getStorage('media')->create($media_struct);

Loading…
Cancel
Save