You are here

public function RegistrantTypeListBuilder::buildRow in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Lists/RegistrantTypeListBuilder.php \Drupal\rng\Lists\RegistrantTypeListBuilder::buildRow()
  2. 8 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\Lists

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['machine_name'] = $entity
    ->id();
  return $row + parent::buildRow($entity);
}