Expose URL alias fields to views

Created on 22 May 2023, over 1 year ago

Problem/Motivation

URL alias data is not available in views.

Steps to reproduce

1. Create a new view at admin/structure/views/add
2. 'URL alias' or 'URL alias revisions' don't appear as options in View settings > Show dropdown.

Proposed resolution

Add a new class that extends Drupal\views\EntityViewsData and add as a handler to Drupal\path_alias\Entity\PathAlias. The handler will expose the id, revision_id, uuid, landcode, path, alias and status fields in the path_alias table.

Remaining tasks

Write a patch
Tests
Review
Commit

User interface changes

URL alias and URL alias revisions will appear as options in View settings > Show dropdown.

API changes

None.

Data model changes

None.

Release notes snippet

TBD

Feature request
Status

Active

Version

10.1

Component
Path 

Last updated 30 minutes ago

  • Maintained by
  • 🇬🇧United Kingdom @catch
Created by

🇦🇺Australia mcaddz

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

Comments & Activities

Production build 0.71.5 2024