Commit 6c297045 authored by Ruturaj Chaubey's avatar Ruturaj Chaubey Committed by Sascha Grossenbacher
Browse files

Issue #3272913 by Ruturaj Chaubey: Deprecated function: render()

parent 14f5af17
Loading
Loading
Loading
Loading
+1 −1
Changes for pathauto.tokens.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ function pathauto_tokens($type, $tokens, array $data, array $options, Bubbleable
        case 'join-path':
          $values = [];
          foreach (token_element_children($array) as $key) {
            $value = is_array($array[$key]) ? render($array[$key]) : (string) $array[$key];
            $value = is_array($array[$key]) ? \Drupal::service('renderer')->render($array[$key]) : (string) $array[$key];
            $value = \Drupal::service('pathauto.alias_cleaner')->cleanString($value, $options);
            $values[] = $value;
          }