public function PardotCampaignListBuilder::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/ PardotCampaignListBuilder.php, line 38
Class
- PardotCampaignListBuilder
- Provides a listing of Pardot Campaign entities.
Namespace
Drupal\pardot\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['campaign_id'] = $entity->campaign_id;
return $row + parent::buildRow($entity);
}