It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.
Related to the Views in Drupal Core initiative.
Part of meta-issue #1856630: [Change notice] [META] Rename Views methods to core standards
I'll work on this
I made changes requested.
I edited 4 files.
I created a view utilising articles. My format was table. I made a sort on title. It rendered successfully so I believe it should be ready
Please review
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.phpundefined @@ -960,7 +960,7 @@ public function validateArgument($arg) { + function validateArgument($arg) { +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.phpundefined @@ -80,7 +80,7 @@ function check_access(&$form, $option_name) { + function validateArgument($arg) { return TRUE; } +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/None.phpundefined @@ -22,7 +22,7 @@ + function validateArgument($argument) { +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Numeric.phpundefined @@ -22,7 +22,7 @@ + function validateArgument($argument) { +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.phpundefined @@ -49,7 +49,7 @@ public function access() { + function validateArgument($argument) { +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.phpundefined @@ -379,7 +379,7 @@ function build_sort() { return TRUE; } + function buildSortPost() { } +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Table.phpundefined @@ -121,7 +121,7 @@ function build_sort() { + function buildSortPost() {
Add public access modifier in front of the functions to adher to the new OOP standards.
Rerolled Patch to only include buildSortPost with public modifier.
The last submitted patch, views_rename_build_sort_post-2002390-4.patch, failed testing.
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.phpundefined @@ -391,7 +391,7 @@ function build_sort() { return TRUE; } + public function buildSortPost() { }
Indentation is incorrect :s
Reroll of #4 + with 2 spaces before public function buildSortPost() { }.
The last submitted patch, views_rename_build_sort_post-2002390-7.patch, failed testing.
Look at the first oatches, you're missing some changes
Covered all build_sort_post().
Looks good to me now.
Committed c3ac610 and pushed to 8.x. Thanks!
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
x.algorithm commentedI'll work on this
Comment #2
x.algorithm commentedI made changes requested.
I edited 4 files.
I created a view utilising articles.
My format was table. I made a sort on title.
It rendered successfully so I believe it should be ready
Please review
Comment #3
oenie commentedAdd public access modifier in front of the functions to adher to the new OOP standards.
Comment #4
nathangervais commentedRerolled Patch to only include buildSortPost with public modifier.
Comment #6
aspilicious commentedIndentation is incorrect :s
Comment #7
chrisguindon commentedReroll of #4 + with 2 spaces before public function buildSortPost() { }.
Comment #9
aspilicious commentedLook at the first oatches, you're missing some changes
Comment #10
suhel.rangnekar commentedCovered all build_sort_post().
Comment #11
oenie commentedLooks good to me now.
Comment #12
alexpottCommitted c3ac610 and pushed to 8.x. Thanks!