public function ImportEntityListBuilder::buildRow in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/ImportEntityListBuilder.php \Drupal\content_synchronizer\ImportEntityListBuilder::buildRow()
- 3.x src/ImportEntityListBuilder.php \Drupal\content_synchronizer\ImportEntityListBuilder::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/
ImportEntityListBuilder.php, line 31
Class
- ImportEntityListBuilder
- Defines a class to build a listing of Import entities.
Namespace
Drupal\content_synchronizerCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\content_synchronizer\Entity\ImportEntity */
$row['id'] = $entity
->id();
$row['name'] = $this
->l($entity
->label(), new Url('entity.import_entity.canonical', [
'import_entity' => $entity
->id(),
]));
return $row + parent::buildRow($entity);
}