[5.x] Cleanup code & UX

Created on 4 August 2022, over 2 years ago
Updated 15 August 2023, over 1 year ago

This task lists relevant code cleanup requirements for the 5.x refactoring.
- [] Remove the term "node" from variables and labels, as Drupal 8+ is "entity"-based.
- [] Review all labels and settings, are they clear?
- [] Discuss to remove the field selection for captions and use only tokens instead:
as it's complex and rendering of the fields is broken. Token is more flexible and well tested. (From: #3218673: Fix photoswipe_caption "entity_label" (legacy title: "node_title") )
- [] Use clear variable names for parent entity vs. image / media entity "$item->entity is not the same as $item->getEntity() which is quite confusing to be fair." (see https://www.drupal.org/project/photoswipe/issues/3226541#comment-14636819 for details)
- [] Review / rewrite README.md to be correct and easy to understand.
- [] [5.x] Separate image and entity_reference formatters Needs work
- [] Remove "$instance->includeHidden" from "PhotoswipeFieldFormatter" and refactor how it is used, because as of #3277884: Implement 'hide' option for photoswipe_node_style in responsive formatter this option is not used anymore.
- [] Remove hard-coded photoswipe-gallery wrapper (as we did in D7): [5.x] Add gallery grouping settings Needs work
...?

📌 Task
Status

Needs work

Version

5.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
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