Duplicate Code - label

Created on 1 November 2024, about 2 months ago

Problem/Motivation

One of these things is just like the other!

 $element['description'] = [
      '#type' => 'textarea',
      '#title' => $this->t('Description'),
      '#description' => $this->t('Shown to the customer below the price element'),
      '#default_value' => $this->getSetting('description'),
    ];

    $element['description'] = [
      '#type' => 'textarea',
      '#title' => $this->t('Description'),
      '#description' => $this->t('Shown to the customer below the price element'),
      '#default_value' => $this->getSetting('description'),
    ];

Steps to reproduce

This doesn't cause any issues - just seems like there is some duplicate code here.

Proposed resolution

Remove the duplicate code.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇿New Zealand luke.stewart

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024