
| Current Path : /var/www/html/store/web/modules/contrib/commerce/modules/price/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/commerce/modules/price/src/CurrencyListBuilder.php |
<?php
namespace Drupal\commerce_price;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines the list builder for currencies.
*/
class CurrencyListBuilder extends ConfigEntityListBuilder {
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header = [
'name' => $this->t('Name'),
'currencyCode' => $this->t('Currency code'),
];
return $header + parent::buildHeader();
}
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row = [
'name' => $entity->label(),
'currencyCode' => $entity->id(),
];
return $row + parent::buildRow($entity);
}
}