Problem/Motivation
After upgrading Linkit to v7, I'm getting this error:
|Error: Call to undefined method Drupal\Core\GeneratedUrl::toString() in Drupal\linkit\Plugin\Filter\LinkitFilter->process()
Linkit changed the expected return type from ::getUrl() in the substitution interface in #3354873: Direct URL to media file entity does not work because relative URL does not pass URL path validation. There was a BC layer added, but it was removed in Linkit 7.
Proposed resolution
Return a Url instead of a GeneratedUrl.
The media_entity_download module already dealt with this in #3391565: Compatibility with Linkit 6
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork media_acquiadam-3538782
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
danflanagan8I know there's no further development here, but my project needs this patch and maybe it will help someone else.
Comment #6
rajeshreeputraMerged!