Duplicate function "permissions_by_term_theme()" in .module file

Created on 16 February 2024, 10 months ago
Updated 20 February 2024, 10 months ago

Problem/Motivation

The function "permissions_by_term_theme()" is duplicated in the .module file both on line 621 and line 641

/**
 * Implements hook_theme().
 */
function permissions_by_term_theme() {
  return [
    'permissions_by_term_render_node_details' => [
      'variables' => [
        'roles' => [],
        'users' => [],
      ],
      'template' => 'node-details',
      'path' => \Drupal::service('extension.list.module')->getPath('permissions_by_term') . '/src/View',
    ]
  ];
}

Proposed resolution

remove second copy

Remaining tasks

create a patch

🐛 Bug report
Status

Closed: works as designed

Version

3.1

Component

Code

Created by

🇳🇱Netherlands Rop Rotterdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024