3 namespace Drupal\local_fonts;
5 use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
6 use Drupal\Core\Entity\EntityInterface;
9 * Provides a listing of Custom Font entities.
11 class LocalFontConfigEntityListBuilder extends ConfigEntityListBuilder {
16 public function buildHeader() {
17 $header['label'] = $this->t('Custom Font');
18 $header['id'] = $this->t('Machine name');
19 $header['font_family'] = $this->t('Font Family');
20 return $header + parent::buildHeader();
26 public function buildRow(EntityInterface $entity) {
27 $row['label'] = $entity->label();
28 $row['id'] = $entity->id();
29 $row['font_family'] = $entity->font_family;
30 return $row + parent::buildRow($entity);