You are here

public function UcWishlistListBuilder::buildRow in UC Wish List 8

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/UcWishlistListBuilder.php, line 124

Class

UcWishlistListBuilder
Defining a class for building list of wishlist entities.

Namespace

Drupal\uc_wishlist

Code

public function buildRow(EntityInterface $entity) {
  $row['title'] = $entity
    ->getTitle();
  $row['expiration'] = $entity
    ->getExpirationTime();
  $row['address'] = $entity
    ->getAddress();
  $row['private'] = $entity
    ->getPrivate();
  $row['description'] = $entity
    ->getDescription();
  return $row + parent::buildRow($entity);
}