https://api.drupal.org/api/drupal/core%21modules%21views%21src%21Plugin%...

Current description is confusing.

Does the style plugin allows to use style plugins.

It should be changed to

To use Row plugins.

It appears that the description was copied to some derived plugins (Table).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

Rishi Kulshreshtha’s picture

Assigned: Unassigned » Rishi Kulshreshtha
Rishi Kulshreshtha’s picture

Assigned: Rishi Kulshreshtha » Unassigned
Pavan B S’s picture

Status: Active » Needs review
FileSize
2.54 KB

Applying the patch, please review and suggest me if i have entered a wrong description. I have taken StylePluginBase class in the description.

Chi’s picture

Status: Needs review » Needs work

The issue not about spelling but meaning. The property controls row plugins.

Pavan B S’s picture

@chi i didn't provide patch for spelling, i consider description based on StylePluginBase class. Sorry if I am wrong.

Chi’s picture

@Pavan B S

to use style plugins

According to the property name it should be "to use row plugins".

naveenvalecha’s picture

Issue summary: View changes

#7 +1
I have checked its usage. According to its usage and the property name, it should be "To use Row plugins"

Updated IS accordingly

dhruveshdtripathi’s picture

Status: Needs work » Needs review
FileSize
2.34 KB

Changes made according to comment #8.

Thank you.

naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs work

Sorry but "To use Row plugins" does not sound like a proper English sentence to me. I would suggest something like "Whether or not this style uses a row plugin."

Also all other instances beside StylePluginBase should be changed to simply

/**
 * {@inheritdoc}
 */

So we don't have to duplicate the documentation.

pk188’s picture

Status: Needs work » Needs review
FileSize
2.56 KB

Agree with #11. Updated the patch accordingly.

tstoeckler’s picture

Status: Needs review » Needs work

That's the direction I was talking about. Thanks @pk188! One minor problem, though, with the last patch:

+++ b/core/modules/views/src/Plugin/views/style/DefaultStyle.php
@@ -19,10 +19,12 @@
   /**
...
    * @var bool
    */

This should be removed as well (except for StylePluginBase).

pk188’s picture

Status: Needs work » Needs review
FileSize
2.46 KB

My mistake.
Fixed #13.

naveenvalecha’s picture

Status: Needs review » Needs work

I have applied the patch and checked it locally. It still needs to apply the {@inheritdoc} to these child classes of StylePluginBase.

- Drupal\views\Plugin\views\style\Opml
- Drupal\views\Plugin\views\style\Rss
- Drupal\views_test_data\Plugin\views\style\StyleTemplateTest
- Drupal\views_test_data\Plugin\views\style\StyleTest

back to N/W for this

tstoeckler’s picture

Thanks @pk188, that's perfect.

I found some more plugins that need updating: Opml, Rss, StyleTemplateTest, StyleTest

I think we should update those too, then this is RTBC.

tstoeckler’s picture

Oops, crosspost with @naveenvalecha in #15, sorry. But great that we came to the same conclusion ;-)

pk188’s picture

Status: Needs work » Needs review
FileSize
4.64 KB

Fixed #15.

naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @pk188
Verified the latest patch on local and it addressed my concerns in #15

//Naveen

  • Gábor Hojtsy committed 91e5214 on 8.3.x
    Issue #2888689 by pk188, Pavan B S, dhruveshdtripathi, naveenvalecha,...
Gábor Hojtsy’s picture

Version: 8.4.x-dev » 8.3.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks, looks good to me too, committed.

  • Gábor Hojtsy committed 6fb6c6b on 8.4.x
    Issue #2888689 by pk188, Pavan B S, dhruveshdtripathi, naveenvalecha,...
pk188’s picture

What's the status of issue. As @Gábor Hojtsy fixed and committed it, but it's status is still RTBC and no credit given to anybody.

naveenvalecha’s picture

Please don't change the status of this issue. I have pinged the @mixologic over IRC to look into that so that he would be able to reproduce the issue and fix the issue on drupal.org

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 18: 2888689-18.patch, failed testing. View results

pk188’s picture

Status: Needs work » Reviewed & tested by the community

The issue has already fixed and committed. So that's why failed to apply.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
pk188’s picture

Status: Fixed » Reviewed & tested by the community

@Gábor Hojtsy credit is not given to anyone, there is any reason for that? Can you please tell.

naveenvalecha’s picture

I'm getting unnecessary notifications email just for the credit stuff which I really don't care. Ping Gabor over IRC regarding credit system(which I think not an issue if we'll not get the credit here)

P.S. :Unfollowing this issue as I don't feel there's anything else required to be done here.
//Naveen

Gábor Hojtsy’s picture

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.