Skip to content
Snippets Groups Projects

Align return type of getEntityFileUrl() with getFileUri().

Open Serkan Bekdemir requested to merge issue/tiny_slider-3479131:1.1.x into 1.1.x
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -761,10 +761,10 @@ class TinySliderFieldFormatter extends EntityReferenceFormatterBase implements C
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity.
*
* @return \Drupal\Core\Url|null
* The file URL if available.
* @return string|null
* The file URI if available.
*/
protected function getEntityFileUrl(EntityInterface $entity): ?Url {
protected function getEntityFileUrl(EntityInterface $entity): ?string {
if ($entity->getEntityTypeId() === 'file') {
return $entity->getFileUri();
}
Loading