commerce-8.x-2.8/modules/checkout/src/CheckoutFlowListBuilder.php
modules/checkout/src/CheckoutFlowListBuilder.php
<?php
namespace Drupal\commerce_checkout;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines the list builder for checkout flows.
*/
class CheckoutFlowListBuilder extends ConfigEntityListBuilder {
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header['label'] = $this->t('Checkout flow');
return $header + parent::buildHeader();
}
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity->label();
return $row + parent::buildRow($entity);
}
}
