public function OrganizationTypeListBuilder::buildRow in CRM Core 8.2
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/OrganizationTypeListBuilder.php \Drupal\crm_core_contact\OrganizationTypeListBuilder::buildRow()
- 8 modules/crm_core_contact/src/OrganizationTypeListBuilder.php \Drupal\crm_core_contact\OrganizationTypeListBuilder::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_contact/ src/ OrganizationTypeListBuilder.php, line 39
Class
- OrganizationTypeListBuilder
- Class OrganizationTypeListBuilder.
Namespace
Drupal\crm_core_contactCode
public function buildRow(EntityInterface $entity) {
$row = array();
$row['title'] = array(
'data' => $entity
->label(),
'class' => array(
'menu-label',
),
);
$row['description'] = Xss::filterAdmin($entity
->getDescription());
return $row + parent::buildRow($entity);
}