Builds a row for an entity in the entity listing.
Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
array A render array structure of fields for this entity.
Drupal\Core\Entity\EntityListController::render()
public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['id'] = $entity
    ->id();
  $operations = $this
    ->buildOperations($entity);
  $row['operations']['data'] = $operations;
  return $row;
}