t('Log ID'); $header['label'] = $this->t('Label'); $header['type'] = $this->t('Type'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /** @var \Drupal\log\Entity\LogInterface $entity */ $row['id'] = ['#markup' => $entity->id()]; $row['name'] = $entity->toLink($entity->label(), 'canonical')->toRenderable(); $row['type'] = ['#markup' => $entity->getBundleLabel()]; return $row + parent::buildRow($entity); } }