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.
Overrides EntityListController::buildRow
Drupal\Core\Entity\EntityListController::render()
public function buildRow(EntityInterface $entity) {
$row['type'] = $entity
->getType();
$row['label'] = String::checkPlain($entity
->label());
if ($this->hasConfigurableActions) {
$row['operations']['data'] = $this
->buildOperations($entity);
}
return $row;
}