You are here

public function ActivityListBuilder::buildRow in Open Social 8

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

Class

ActivityListBuilder
Defines a class to build a listing of Activity entities.

Namespace

Drupal\activity_creator

Code

public function buildRow(EntityInterface $entity) {

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