You are here

public function EventEnrollmentListBuilder::buildRow in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  2. 8.2 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  3. 8.3 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  4. 8.4 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  5. 8.5 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  6. 8.6 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  7. 8.7 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  8. 8.8 modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  9. 10.3.x modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  10. 10.0.x modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  11. 10.1.x modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::buildRow()
  12. 10.2.x modules/social_features/social_event/src/EventEnrollmentListBuilder.php \Drupal\social_event\EventEnrollmentListBuilder::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

modules/social_features/social_event/src/EventEnrollmentListBuilder.php, line 30

Class

EventEnrollmentListBuilder
Defines a class to build a listing of Event enrollment entities.

Namespace

Drupal\social_event

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\social_event\Entity\EventEnrollment */
  $row['id'] = $entity
    ->id();
  $row['name'] = $this
    ->l($entity
    ->label(), new Url('entity.event_enrollment.edit_form', [
    'event_enrollment' => $entity
      ->id(),
  ]));
  return $row + parent::buildRow($entity);
}