Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In commerce/modules/order/src/Form/OrderForm.php
$form['meta'] = [
'#attributes' => ['class' => ['entity-meta__header']],
'#type' => 'container',
'#group' => 'advanced',
'#weight' => -100,
'state' => [
'#type' => 'html_tag',
'#tag' => 'h3',
'#value' => $order->getState()->getLabel(),
'#attributes' => [
'class' => 'entity-meta__title',
],
// Hide the rendered state if there's a widget for it.
'#access' => empty($form['store_id']),
],
'date' => NULL,
'changed' => $this->fieldAsReadOnly($this->t('Last saved'), $last_saved),
];
#attributes' => [
'class' => 'entity-meta__title',
],
should be
#attributes' => [
'class' => ['entity-meta__title'],
],
Otherwise it throws errors down the line about not being an array.
Comment | File | Size | Author |
---|---|---|---|
#3 | entity-meta-title-converted-to-array-2935523-3.patch | 769 bytes | ritzz |
|
Comments
Comment #2
ritzz CreditAttribution: ritzz at Valuebound commentedWorking on it.
Comment #3
ritzz CreditAttribution: ritzz at Valuebound commentedDone changes as mentioned in description. Kindly review.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedThanks!