You are here

public function GroupListBuilder::buildRow in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Lists/GroupListBuilder.php \Drupal\rng\Lists\GroupListBuilder::buildRow()
  2. 3.x src/Lists/GroupListBuilder.php \Drupal\rng\Lists\GroupListBuilder::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/GroupListBuilder.php, line 103

Class

GroupListBuilder
Builds a list of registration groups.

Namespace

Drupal\rng\Lists

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['source'] = $entity
    ->isUserGenerated() ? t('User') : t('System');
  $row['description'] = MailFormatHelper::htmlToText($entity
    ->getDescription());
  return $row + parent::buildRow($entity);
}