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