Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291503

Convert the computed path item field type to a regular entity reference field

$
0
0

Problem/Motivation

After path aliases are converted to a content entity type, we should be able to remove the custom PathItem field type and replace it with a regular entity reference field targeting the new path_alias entity type.

Proposed resolution

Change the relationship between nodes/terms/media items and path aliases to an entity reference one.

Removing the custom path alias related code from various entity forms will most likely need a simple version of Inline Entity Form in core.

Remaining tasks

TBD.

User interface changes

Nope.

API changes

Yes, most likely for REST APIs: getting the path alias for a node will be done by requesting the referenced path alias entity.

Data model changes

A new base field will be added to entity types that support path aliases, currently nodes, taxonomy terms and media items.


Viewing all articles
Browse latest Browse all 291503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>