Closed (outdated)
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2025 at 02:32 UTC
Updated:
16 Sep 2026 at 02:38 UTC
Jump to comment: Most recent
.module files are no longer necessary, let's convert views_test_data.module
Open file
Move all accessCallbacks to ViewsTestCallbacks
Move all template_preprocess functions to static callbacks in the hook class.
None
N/A
N/A
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nicxvan commentedPostponed on #3520416: [meta] Handle calls to functions that still require .module file autoloading.
Views access callbacks cannot be OOP until that is changed. I will push up converting what I've done so far and change that function_exists to is_callable, but it exits in a child process.
I'm not sure where the template preprocess initial preprocess goes either.
template_preprocess_views_view_mapping_testis the template function, but there is no hook_theme for views_view_mapping_test. Is this meant to be just aI see:
But I am not sure where to put this. Is this another that is meant to be just a normal preprocess?
Comment #4
nicxvan commentedComment #5
berdirThis is testing the generic theme definitions in views module.
I think it makes sense to convert that there to verify it works for other modules
Comment #6
nicxvan commentedI'm ok with converting the preprocess there. It is the callbacks are postponed.
I just figured i would do both at once until I got the is callable issue.
Comment #7
nicxvan commentedThe issue this was postponed on became a META and the specific issue was resolved as a child issue.
This can be worked on now!
Comment #9
nicxvan commentedThis was converted elsewhere: https://git.drupalcode.org/project/drupal/-/tree/main/core/modules/views...