public function SalesforceMappingList::buildRow in Salesforce Suite 8.4
Same name and namespace in other branches
- 5.0.x modules/salesforce_mapping_ui/src/SalesforceMappingList.php \Drupal\salesforce_mapping_ui\SalesforceMappingList::buildRow()
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
Return value
array A render array structure of fields for this entity.
Overrides DraggableListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- modules/
salesforce_mapping_ui/ src/ SalesforceMappingList.php, line 37
Class
- SalesforceMappingList
- Defines the filter format list controller.
Namespace
Drupal\salesforce_mapping_uiCode
public function buildRow(EntityInterface $entity) {
$row = [];
$row['label'] = $entity
->label();
$properties = [
'drupal_entity_type',
'drupal_bundle',
'salesforce_object_type',
];
foreach ($properties as $property) {
$row[$property] = [
'#markup' => $entity
->get($property),
];
}
return $row + parent::buildRow($entity);
}