public function ProfileTypeListBuilder::buildRow in Profile 2 8
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
- src/
ProfileTypeListBuilder.php, line 31 - Contains \Drupal\profile\ProfileTypeListController.
Class
- ProfileTypeListBuilder
- List controller for profile types.
Namespace
Drupal\profileCode
public function buildRow(EntityInterface $entity) {
$row['type'] = $entity
->link();
$row['registration'] = $entity->registration ? t('Yes') : t('No');
$row['multiple'] = $entity->multiple ? t('Yes') : t('No');
return $row + parent::buildRow($entity);
}