public function PardotScoreListBuilder::buildRow in Pardot Integration 8
Builds a row for an entity in the entity listing.
Parameters
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
File
- src/
Controller/ PardotScoreListBuilder.php, line 38
Class
- PardotScoreListBuilder
- Provides a listing of Pardot Score entities.
Namespace
Drupal\pardot\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['score_value'] = $entity->score_value;
return $row + parent::buildRow($entity);
}