Problem/Motivation

Doing code like:

      'unit_price' => [
        '#type' => 'commerce_price',
        '#title' => $this->t('Unit price'),
        '#title_display' => 'invisible',

does not work.

Proposed resolution

Make '#title_display' work in \Drupal\commerce_price\Element\Price

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 2924930-2.patch2.61 KBalexpott
#2 2924930-2.test-only.patch2.04 KBalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new2.04 KB
new2.61 KB

The last submitted patch, 2: 2924930-2.test-only.patch, failed testing. View results

  • bojanz committed eca0e04 on 8.x-2.x authored by alexpott
    Issue #2924930 by alexpott: Support #title_display on commerce_price...
bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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