Refactor building links render array into prevnext.service

Created on 28 January 2024, 5 months ago
Updated 13 February 2024, 4 months ago

Problem/Motivation

Currently there's duplication of code used to create render arrays for previous/next links. I think I've noticed some cacheability metadata issues, and before working on them I thought it made sense to factor out the common code.

Proposed resolution

Add a method to the prevnext service to build render links.

Remaining tasks

API changes

There will be a new method on prevnext.service with signature buildEntityLinks(EntityInterface $entity): array that returns a render array of previous/next links for the entity.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom AndyF

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024