Linkit submodule: Make Linkit URLs easier to work with

Created on 9 May 2023, over 1 year ago

To construct a URL object using the value returned by the Linkit object, different methods must be used for different kinds of values. Internal links, values like "/my-relative-path," are best handled using Url::fromUserInput() - whereas external links must use Url::fromUri() or else fatal.

It would be easiest to work with Linkit-based config values if they were always URIs. That way ::fromUri() could always be used in PHP, and link() would always work in Twig.

A plainer implementation of the Linkit form element could be left in as it currently is, and this type and element builder could be created as new additions.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bvoynick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024