t('ID'); $header['name'] = $this->t('Name'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /* @var $entity \Drupal\entity_browser\Entity\EntityBrowser */ $row['id'] = $entity->id(); $row['name'] = $entity->label(); return $row + parent::buildRow($entity); } }