Support from Acquia helps fund testing for Drupal Acquia logo

Comments

druderman’s picture

Assigned: Unassigned » druderman

At drupalcon sprint

druderman’s picture

Status: Active » Needs review
FileSize
1.42 KB
elvis2’s picture

Status: Needs review » Needs work

Thanks for working on this. You need to add the access modifier (public/private/protected) before the function name. Take a look at the parent issue (http://drupal.org/node/1856630), comments #28, #34, #35 for more details.

You can see an example patch here: http://drupal.org/node/2001672

tvlooy’s picture

Status: Needs work » Needs review
FileSize
1.42 KB

Added the access modifier.

elvis2’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

Reviewed patch based on the following criteria: http://drupal.org/node/1856630#comment-7450696

druderman’s picture

Good catch. Thanks Tvlooy.

druderman’s picture

Assigned: druderman » Unassigned
alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Needs re-roll

curl http://drupal.org/files/views-rename_function-2003350-4.patch | git a
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1456  100  1456    0     0   4127      0 --:--:-- --:--:-- --:--:--  8416
error: patch failed: core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php:1208
error: core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php: patch does not apply
jibran’s picture

Status: Needs work » Needs review
FileSize
1.42 KB

Reroll

conflict

++<<<<<<< HEAD
 +      $tokens = $this->getRenderTokens($alter);
 +      $value = $this->render_altered($alter, $tokens);
++=======
+       $tokens = $this->get_render_tokens($alter);
+       $value = $this->renderAltered($alter, $tokens);
++>>>>>>> 2

resolved

 -      $tokens = $this->get_render_tokens($alter);
 +      $tokens = $this->getRenderTokens($alter);
-       $value = $this->render_altered($alter, $tokens);
+       $value = $this->renderAltered($alter, $tokens);

Status: Needs review » Needs work
Issue tags: -Novice, -VDC

The last submitted patch, 2003350-9.patch, failed testing.

druderman’s picture

Status: Needs work » Needs review
Issue tags: +Novice, +VDC

#9: 2003350-9.patch queued for re-testing.

dawehner’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.phpundefined
@@ -1279,7 +1279,7 @@ public function renderText($alter) {
+  function renderAltered($alter, $tokens) {

It's just used internally, so it should be marked as protected.

elvis2’s picture

Status: Needs work » Needs review
FileSize
1.44 KB

Re-rolled based on most recent pull of 8.x branch.

Edit: please cancel this patch, if possible, since it has an error in the code.

dawehner’s picture

Should be protected

elvis2’s picture

Thanks @dawehner. Re-rolled.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 49fb3c5 and pushed to 8.x. Thanks!

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