GoogleAdwordsPathConfigListBuilder.php in Google AdWords Conversion Tracking 8
File
modules/google_adwords_path/src/GoogleAdwordsPathConfigListBuilder.php
View source
<?php
namespace Drupal\google_adwords_path;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class GoogleAdwordsPathConfigListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Google AdWords Path Config');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
}