public function RelationListBuilder::buildRow in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_user_sync/src/RelationListBuilder.php \Drupal\crm_core_user_sync\RelationListBuilder::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 EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- modules/
crm_core_user_sync/ src/ RelationListBuilder.php, line 91
Class
- RelationListBuilder
- Provides a list controller for the relation entity type.
Namespace
Drupal\crm_core_user_syncCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\crm_core_user_sync\Entity\Relation */
$row['id'] = $entity
->id();
$row['user'] = $entity
->getUser()
->label();
$row['individual'] = $entity
->getIndividual()
->label();
return $row + parent::buildRow($entity);
}