t('Case ID'); $header['name'] = $this->t('Name'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /* @var $entity \Drupal\opencase_entities\Entity\OCCase */ $row['id'] = $entity->id(); $row['name'] = Link::createFromRoute( $entity->label(), 'entity.oc_case.edit_form', ['oc_case' => $entity->id()] ); return $row + parent::buildRow($entity); } }