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