public function ActivityListBuilder::buildRow in CRM Core 8.2
Same name and namespace in other branches
- 8.3 modules/crm_core_activity/src/ActivityListBuilder.php \Drupal\crm_core_activity\ActivityListBuilder::buildRow()
- 8 modules/crm_core_activity/src/ActivityListBuilder.php \Drupal\crm_core_activity\ActivityListBuilder::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_activity/ src/ ActivityListBuilder.php, line 56 - Contains \Drupal\crm_core_activity\ActivityListBuilder.
Class
Namespace
Drupal\crm_core_activityCode
public function buildRow(EntityInterface $entity) {
$row = array();
$row['date']['data'] = $entity
->get('activity_date')
->view(array(
'label' => 'hidden',
));
$row['title']['data'] = array(
'#type' => 'link',
'#title' => $entity
->label(),
'#url' => $entity
->urlInfo(),
);
$row['type'] = $entity
->get('type')->entity
->label();
return $row + parent::buildRow($entity);
}