t('Label'); $header['id'] = $this->t('Machine name'); $header['status'] = $this->t('Status'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /** @var \Drupal\{{ machine_name }}\{{ class_prefix }}Interface $entity */ $row['label'] = $entity->label(); $row['id'] = $entity->id(); $row['status'] = $entity->status() ? $this->t('Enabled') : $this->t('Disabled'); return $row + parent::buildRow($entity); } }