You are here

public function RealEstateListBuilder::buildRow in Styled Google Map 8.2

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/demo/src/RealEstateListBuilder.php, line 29

Class

RealEstateListBuilder
Defines a class to build a listing of Real estate entities.

Namespace

Drupal\styled_google_map_demo

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\styled_google_map_demo\Entity\RealEstate */
  $row['id'] = $entity
    ->id();
  $row['name'] = Link::createFromRoute($entity
    ->label(), 'entity.real_estate.canonical', [
    'real_estate' => $entity
      ->id(),
  ]);
  return $row + parent::buildRow($entity);
}