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