CslStyleListBuilder.php in Bibliography & Citation 2.0.x        
                          
                  
                        
  
  
  
  
File
  src/CslStyleListBuilder.php
  
    View source  
  <?php
namespace Drupal\bibcite;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class CslStyleListBuilder extends ConfigEntityListBuilder {
  
  public function buildHeader() {
    $header['id'] = $this
      ->t('Machine name');
    $header['label'] = $this
      ->t('Label');
    $header['status'] = $this
      ->t('Status');
    return $header + parent::buildHeader();
  }
  
  public function buildRow(EntityInterface $entity) {
    
    $row['id'] = $entity
      ->id();
    $row['label'] = $entity
      ->label();
    $row['status'] = $entity
      ->status() ? $this
      ->t('Enabled') : $this
      ->t('Disabled');
    return $row + parent::buildRow($entity);
  }
}