You are here

public function ExportEntityListBuilder::buildRow in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/ExportEntityListBuilder.php \Drupal\content_synchronizer\ExportEntityListBuilder::buildRow()
  2. 3.x src/ExportEntityListBuilder.php \Drupal\content_synchronizer\ExportEntityListBuilder::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

src/ExportEntityListBuilder.php, line 31

Class

ExportEntityListBuilder
Defines a class to build a listing of Export entity entities.

Namespace

Drupal\content_synchronizer

Code

public function buildRow(EntityInterface $entity) {

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