Problem/Motivation

I'm currently writing a custom module in which I need the Flag URL. Currently the only way is to call the getAsLink method, but it would be nice if there also was a getAsUrl method in which I can get the Url as an URL object.

CommentFileSizeAuthor
#2 3196084-2.patch2.47 KBjeroent

Issue fork flag-3196084

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

JeroenT created an issue. See original summary.

jeroent’s picture

StatusFileSize
new2.47 KB
jeroent’s picture

Status: Active » Needs review
jeroent’s picture

Issue summary: View changes
ivnish’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll, +Needs tests
sayan_k_dutta’s picture

Assigned: Unassigned » sayan_k_dutta

Working on it.

sayan_k_dutta’s picture

.

sayan_k_dutta’s picture

Assigned: sayan_k_dutta » Unassigned
Status: Needs work » Needs review
ivnish’s picture

Status: Needs review » Needs work
Issue tags: -Needs reroll

Thanks! Still needs tests

sayan_k_dutta’s picture

Status: Needs work » Needs review

Added the tests. Please review.

ivnish’s picture

Issue tags: -Needs tests
ivnish’s picture

Status: Needs review » Reviewed & tested by the community
ivnish’s picture

Version: 8.x-4.x-dev » 5.x-dev
ivnish’s picture

Category: Task » Feature request

ivnish’s picture

Status: Reviewed & tested by the community » Fixed

Merged! Thanks!

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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