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