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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

i.bajrai created an issue. See original summary.

ritzz’s picture

Assigned: Unassigned » ritzz

Working on it.

ritzz’s picture

Status: Active » Needs review
FileSize
769 bytes

Done changes as mentioned in description. Kindly review.

  • bojanz committed 8c6a11d on 8.x-2.x authored by ritzz
    Issue #2935523 by ritzz: entity-meta__title class is a string not an...
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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