Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At the moment we are using a views_theme_functions() which is in views.module, but that includes views.theme.inc and them calls _views_theme_functions() there. You always need a view to use the function anyway, so maybe it makes sense to move this into the ViewExecutable class.
With a quick unit test too.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2027031-2.patch | 10.78 KB | damiankloip |
vdc.remove-views_theme_functions.patch | 10.39 KB | damiankloip | |
Comments
Comment #1
dawehnerDo we also return something ^^
This parameter seems to removed.
Unit Test all the things, but can we just have a ViewExecutable test?
Comment #2
damiankloip CreditAttribution: damiankloip commentedNice, thank you!
I have changed the test to be called ViewExecutableUnitTest, as unfortunately we already have ViewExecutableTest, and simpletest module loads all namespaces, so we get a conflict!
Comment #3
damiankloip CreditAttribution: damiankloip commentedSorry, forgot the interdiff....oh well! :) It's a smallish patch.
Comment #4
dawehnerWow, did we really managed to implement two patterns for the test files?
core/tests looks like this:
core/tests/Drupal/Tests/Core/FooTest
core/modules/{module} looks like this:
core/modules/{module}/Drupal/{module}/Tests/FooTest
I guess we should switch to the second one everywhere?
Comment #5
damiankloip CreditAttribution: damiankloip commentedYeah, that's what I have been assuming. That we use the same dir structure in /tests/ as we do in /lib/. This is not an issue with this patch though?
Comment #6
dawehnerLet's get it in now.
Comment #7
alexpottCommitted fc9584d and pushed to 8.x. Thanks!
Comment #8
damiankloip CreditAttribution: damiankloip commentedFixed? :)
Comment #10
xjmComment #11
Chris Matthews CreditAttribution: Chris Matthews as a volunteer and at City of Oaks Design commentedFor more information as to why this issue was moved to the Drupal core project, please see issue #3030347: Plan to clean process issue queue
Comment #12
Chris Matthews CreditAttribution: Chris Matthews as a volunteer and at City of Oaks Design commentedMoving back to the contributed Views issue queue and closing as outdated per https://www.drupal.org/project/views/issues/3030347#comment-13023447