t('Font display'); $header['id'] = $this->t('Machine name'); $header['name'] = $this->t('Font'); $header['theme'] = $this->t('Theme'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { $font = $entity->getFont(); if (empty($font)) { $font = Font::create(['name' => 'Font not supported!']); } $row['label'] = $entity->label(); $row['id'] = $entity->id(); $row['name'] = $font->name->value; $row['theme'] = $entity->getTheme(); return $row + parent::buildRow($entity); } }