function RobotListBuilder::buildRow
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for which to build the row.
Return value
array A render array of the table row for displaying the entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListController::render()
File
- 
              modules/config_entity_example/ src/ Controller/ RobotListBuilder.php, line 64 
Class
- RobotListBuilder
- Provides a listing of robot entities.
Namespace
Drupal\config_entity_example\ControllerCode
public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity->label();
  $row['machine_name'] = $entity->id();
  $row['neural_system'] = $entity->neural_system;
  return $row + parent::buildRow($entity);
}