You are here

public function RegistrationTypeListBuilder::buildRow in RNG - Events and Registrations 8.2

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

Class

RegistrationTypeListBuilder
Builds a list of registration types.

Namespace

Drupal\rng\Lists

Code

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