contacts-8.x-1.x-dev/modules/dbs/src/DBSWorkforceListBuilder.php
modules/dbs/src/DBSWorkforceListBuilder.php
<?php
namespace Drupal\contacts_dbs;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
/**
* Provides a listing of dbs workforces.
*/
class DBSWorkforceListBuilder extends ConfigEntityListBuilder {
/**
* {@inheritdoc}
*/
public function buildHeader() {
$header['title'] = $this->t('Name');
return $header + parent::buildHeader();
}
/**
* {@inheritdoc}
*/
public function buildRow(EntityInterface $entity) {
$row['title'] = [
'data' => $entity->label(),
'class' => ['menu-label'],
];
return $row + parent::buildRow($entity);
}
}
