[meta] convert β€˜uri_callback’ entities param to EntityInterface::uri() method

Created on 2 June 2013, about 11 years ago
Updated 30 August 2023, 10 months ago

Problem/Motivation

We want to remove entity uri_callback param that was declared for backward compatible with drupal 7.

Proposed resolution

1) entity templates already takes precedence over uri_callback

2) We need to drop functions in global namespace (and uri_callback param in entity annotation that reference to this functions).

After this we will remove uses of this param in Entity API.

<!--break-->

Remaining tasks

When rendering routes it makes sense to know the route name #2283851: Pass the route name to OutboundRouteProcessorInterface::processOutbound β†’

Open

Done

User interface changes

None.

API changes

Removal of
\Drupal\Core\Entity\EntityTypeInterface::getUriCallback()
\Drupal\Core\Entity\EntityTypeInterface::setUriCallback()
taxonomy_term_uri()
forum_uri()
...complete

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡¦Ukraine InternetDevels

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

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.69.0 2024