Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ari Gold’s picture

Assigned: Unassigned » Ari Gold
Ari Gold’s picture

Status: Active » Needs review
FileSize
636 bytes

Patch attached.

Ari Gold’s picture

Rerolled patch.

oenie’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.phpundefined
@@ -349,7 +349,7 @@ function element_label_classes($row_index = NULL) {
+  function elementWrapperClasses($row_index = NULL) {

Add public access modifier in front of the function to adher to the new OOP standards.

Ari Gold’s picture

Status: Needs work » Needs review
FileSize
1.38 KB

Rerolled patch.

Are the new OOP coding standards documented?

Ari Gold’s picture

I now see that comment #28 in https://drupal.org/node/1856630 suggests that public is a good default.

oenie’s picture

It kind of depends on how the function is used.
If it's a function that's only used from a class instance itself ($this->elementWrapperClasses), you could set it to protected.
But public usually is a safe bet.

oenie’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine now.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

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