public function ExportEntityListBuilder::buildRow in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/ExportEntityListBuilder.php \Drupal\content_synchronizer\ExportEntityListBuilder::buildRow()
- 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_synchronizerCode
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);
}