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 am creating a patch for this.
Created patch to change page_display_options() to pageDisplayOptions()
*My First Patch*
The last submitted patch, 2003436-02-change-page_display_options.patch, failed testing.
#2: 2003436-02-change-page_display_options.patch queued for re-testing.
Looks good to me !
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/wizard/Comment.phpundefined @@ -100,10 +100,10 @@ protected function build_form_style(array &$form, array &$form_state, $type) { - * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options(). + * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::pageDisplayOptions(). +++ b/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.phpundefined @@ -192,10 +192,10 @@ protected function default_display_filters_user(array $form, array &$form_state) - * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options(). + * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::pageDisplayOptions(). @@ -203,7 +203,7 @@ protected function page_display_options(array $form, array &$form_state) { - * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options(). + * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::pageDisplayOptions().
This should be {@inheritdoc} instead of Overrides...
{@inheritdoc}
Overrides...
+++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/wizard/Comment.phpundefined @@ -111,7 +111,7 @@ protected function page_display_options(array $form, array &$form_state) { - * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::page_display_options(). + * Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::pageDisplayOptions().
This is actually an unrelated change. As this is the docblock for block_display_options and will probably conflict with the patch that converts that to block_display_options to camelCase
Made changes suggested by #6
Will submit new patch for #2002366: Rename Views method block_display_options() to blockDisplayOptions() to correct 2nd code block in #6
It should be just {@inheritdoc}, nothing else, sorry.
@dawehner No worries. Thank you for the help. I understand what is happening now.
patch attached
The last submitted patch, views-core-pageDisplayOptions-2003436-09.patch, failed testing.
#10: views-core-pageDisplayOptions-2003436-09.patch queued for re-testing.
Let's see if it will apply cleanly now.
Committed b98a404 and pushed to 8.x. Thanks!
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
SpartyDan commentedI am creating a patch for this.
Comment #2
SpartyDan commentedCreated patch to change page_display_options() to pageDisplayOptions()
*My First Patch*
Comment #4
SpartyDan commented#2: 2003436-02-change-page_display_options.patch queued for re-testing.
Comment #5
oenie commentedLooks good to me !
Comment #6
alexpottThis should be
{@inheritdoc}instead ofOverrides...This is actually an unrelated change. As this is the docblock for block_display_options and will probably conflict with the patch that converts that to block_display_options to camelCase
Comment #7
SpartyDan commentedMade changes suggested by #6
Will submit new patch for #2002366: Rename Views method block_display_options() to blockDisplayOptions() to correct 2nd code block in #6
Comment #8
SpartyDan commentedComment #9
dawehnerIt should be just {@inheritdoc}, nothing else, sorry.
Comment #10
SpartyDan commented@dawehner No worries. Thank you for the help. I understand what is happening now.
patch attached
Comment #12
SpartyDan commented#10: views-core-pageDisplayOptions-2003436-09.patch queued for re-testing.
Comment #14
heddnLet's see if it will apply cleanly now.
Comment #15
heddnComment #16
aspilicious commentedComment #17
alexpottCommitted b98a404 and pushed to 8.x. Thanks!