Skip to content

Commit

Permalink
getFilename as function instead of property (Islandora#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Aitken authored Dec 1, 2020
1 parent 836d521 commit 6d11796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaSource/MediaSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function putToNode(

// 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);
Expand Down

0 comments on commit 6d11796

Please sign in to comment.