commerce_shipping-8.x-2.0-rc2/src/ShipmentTypeListBuilder.php
src/ShipmentTypeListBuilder.php
<?php namespace Drupal\commerce_shipping; use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Entity\EntityInterface; /** * Defines the list builder for shipment types. */ class ShipmentTypeListBuilder extends ConfigEntityListBuilder { /** * {@inheritdoc} */ public function buildHeader() { $header['label'] = $this->t('Shipment type'); $header['id'] = $this->t('Machine name'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { $row['label'] = $entity->label(); $row['id'] = $entity->id(); return $row + parent::buildRow($entity); } }