Refactor from access_unpublished_linked_nodes_preprocess_field into a new text filter using drush gen plugin:filter

Created on 29 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago

Problem/Motivation

When I first designed this module I took the hook_preprocess_field / access_unpublished_linked_nodes_preprocess_field approach when in fact this module would be better integrated and less complicated if it was a text filter instead.

Steps to reproduce

N/A

Proposed resolution

drush gen plugin:filter
Move the AccessUnpublishedHelper::nodePreprocessField($value) call from hook_preprocess_field to a new text filter.

Refactor the code accordingly.

The text filter should have a heavy weight by default so it runs as close to last as possible.

Remaining tasks

Make it so

User interface changes

TBD

API changes

see proposed solution

Data model changes

TBD

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada joseph.olstad

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

Comments & Activities

Production build 0.71.5 2024