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

[PP-1] Optimize alias lookup and load in PathFieldItemList

$
0
0

After #2336597: Convert path aliases to full featured entities gets in we must reduce the number of queries in PathFieldItemList as suggested in #2511968-47: Path field should fall back to language neutral aliases (also makes this happen for the form widget!):

@Berdir:

I'm wondering if this could be done like the main alias lookup. Look for both language specific and neutral alias in a single load, if there is more than one alias, prefer the one with the matching language.

@amateescu:

That would be very easy to do after #2336597: Convert path aliases to full featured entities since we'll be able to use an entity query with an OR condition on the langcode field


Viewing all articles
Browse latest Browse all 295812

Trending Articles