t('ID'), $this->t('Title'), $this->t('Type'), $this->t('Author'), ]; $ret = array_merge($header, $parentHeader); return $ret; } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { assert($entity instanceof Blog); $author = $entity->getAuthor()->toLink(); $bundle = $entity->bundle(); $blogType = BlogType::load($bundle); $blogTypeEditLink = $blogType->toLink($bundle, 'edit-form'); $row = [ $entity->id(), $entity->label(), $blogTypeEditLink, $author, ]; $ret = array_merge($row, parent::buildRow($entity)); return $ret; } }