Upcast linkit profile in linkit.autocomplete route

Created on 7 May 2021, over 3 years ago
Updated 9 October 2023, about 1 year ago

Problem/Motivation

The linkit.autocomplete route contains a slug for the {linkit_profile_id}. The controller then loads the LinkIt profile with the given id. However, Drupal supports parameter upcasting to do this automatically, see https://www.drupal.org/docs/8/api/routing-system/parameters-in-routes/pa... β†’

Proposed resolution

Upcast the linkit profile in linkit.autocomplete route.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024