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

Command icon 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

danflanagan8 created an issue. See original summary.

danflanagan8’s picture

Status: Active » Needs review

I know there's no further development here, but my project needs this patch and maybe it will help someone else.

rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Status: Needs review » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.