Support Entity UUID (and other properties) in the generic Entity Argument Validator

Created on 19 March 2019, over 5 years ago
Updated 13 October 2023, about 1 year ago

Problem/Motivation

After the introduction of Entity UUID we have in some cases substituted Entity ID in favour of this. When using UUID with Views we found that the generic Entity Argument Validator (\Drupal\views\Plugin\views\argument_validator/Entity) support only Entity ID. As we needed support for validation of Entity UUID we thought of adding support for this as well.

Update
Motivation escalated to support all base fields, not only UUID. For the User entity we now support fields like email and username.

Proposed resolution

Instead of load entities only by ID's, we are loading them by property based on the realField defined in the argument. This way the generic validator will be able to handle all argument types.

✨ Feature request
Status

Needs work

Version

11.0 🔥

Component
Views  →

Last updated about 8 hours ago

Created by

🇳🇴Norway mnlund

Live updates comments and jobs are added and updated live.
  • Needs committer feedback

    The issue needs input from the primary project maintainers, because it affects the project’s long-term roadmap, or because the community was not able to come to a consensus and needs a top-down decision. Use sparingly.

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