MatcherListBuilder.php in CRM Core 8.2
File
modules/crm_core_match/src/Matcher/MatcherListBuilder.php
View source
<?php
namespace Drupal\crm_core_match\Matcher;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class MatcherListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Label');
$header['description'] = $this
->t('Description');
$header['plugin'] = $this
->t('Match engine');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['description'] = $entity
->getDescription();
$row['plugin'] = $entity
->getPluginTitle();
return $row + parent::buildRow($entity);
}
}