WordfilterConfigurationListBuilder.php in Wordfilter 8.2
File
src/WordfilterConfigurationListBuilder.php
View source
<?php
namespace Drupal\wordfilter;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class WordfilterConfigurationListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Wordfilter configuration');
$header['id'] = $this
->t('Machine name');
$header['process'] = $this
->t('Filtering process');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$row['process'] = $entity
->get('process_id');
return $row + parent::buildRow($entity);
}
}