You are here

public function QueueStorageEntityTypeListBuilder::buildRow in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php \Drupal\social_queue_storage\QueueStorageEntityTypeListBuilder::buildRow()
  2. 8.8 modules/custom/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php \Drupal\social_queue_storage\QueueStorageEntityTypeListBuilder::buildRow()
  3. 10.3.x modules/custom/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php \Drupal\social_queue_storage\QueueStorageEntityTypeListBuilder::buildRow()
  4. 10.0.x modules/custom/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php \Drupal\social_queue_storage\QueueStorageEntityTypeListBuilder::buildRow()
  5. 10.1.x modules/custom/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php \Drupal\social_queue_storage\QueueStorageEntityTypeListBuilder::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/social_queue_storage/src/QueueStorageEntityTypeListBuilder.php, line 25

Class

QueueStorageEntityTypeListBuilder
Provides a listing of Queue storage entity type entities.

Namespace

Drupal\social_queue_storage

Code

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