ImportConfigListBuilder.php in Entity Share 8.3        
                          
                  
                        
  
  
  
  
  
File
  modules/entity_share_client/src/ImportConfigListBuilder.php
  
    View source  
  <?php
declare (strict_types=1);
namespace Drupal\entity_share_client;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class ImportConfigListBuilder extends ConfigEntityListBuilder {
  
  public function buildHeader() {
    $header = [];
    $header['label'] = $this
      ->t('Import config');
    $header['id'] = $this
      ->t('Machine name');
    return $header + parent::buildHeader();
  }
  
  public function buildRow(EntityInterface $entity) {
    $row = [];
    $row['label'] = $entity
      ->label();
    $row['id'] = $entity
      ->id();
    return $row + parent::buildRow($entity);
  }
}