public function RegistrantTypeListBuilder::buildRow in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Lists/RegistrantTypeListBuilder.php \Drupal\rng\Lists\RegistrantTypeListBuilder::buildRow()
- 3.x src/Lists/RegistrantTypeListBuilder.php \Drupal\rng\Lists\RegistrantTypeListBuilder::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
- src/
Lists/ RegistrantTypeListBuilder.php, line 25
Class
- RegistrantTypeListBuilder
- Builds a list of registrant types.
Namespace
Drupal\rng\ListsCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['machine_name'] = $entity
->id();
return $row + parent::buildRow($entity);
}