Replace views_add_contextual_links() in views.module with service

Created on 20 September 2015, over 9 years ago
Updated 25 December 2023, over 1 year ago

Problem/Motivation

Follow up to #2476947: Convert "title" page element into a block → , we had to namespace views_add_contextual_links() in ViewPageControllerTest which was a copy of the same thing done in ViewBlockTest. In both cases the function needs to exist to prevent a fatal "function does not exist" error. If there is any potential for the function to be called, we need the functionality mocked, as well.

Also replace views_add_contextual_links() in views.module with a service and update all views_add_contextual_links() instances in core .

Steps to reproduce

Proposed resolution

Convert views_add_contextual_links() to service.

Remaining tasks

Review

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Views  →

Last updated about 9 hours ago

Created by

🇺🇸United States davidhernandez USA

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

Merge Requests

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