When linking the image to the file, I get this message:
LogicException: Bubbling failed. in Drupal\Core\Render\Renderer->executeInRenderContext() (line 583 of core/lib/Drupal/Core/Render/Renderer.php).
In the watchdog I see:
Drupal\tiny_slider\Plugin\Field\FieldFormatter\TinySliderFieldFormatter::getEntityFileUrl(): Return value must be of type ?Drupal\Core\Url, string returned - /var/www/html/web/modules/contrib/tiny_slider/src/Plugin/Field/FieldFormatter/TinySliderFieldFormatter.php:775
And indeed, the getEntityFileUrl() method is supposed to return an URL-Object, but the methods it calls return strings.
Changing the return type from ?Url to ?string seems to fix the issue here.
Issue fork tiny_slider-3479131
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
serkanb commentedComment #6
ipwa commentedThanks for your contribution @serkanb!
Comment #7
ipwa commented