public function AssetListBuilder::buildRow in farmOS 2.x
File
- modules/
core/ asset/ src/ AssetListBuilder.php, line 28
Class
- AssetListBuilder
- Defines a class to build a listing of asset entities.
Namespace
Drupal\assetCode
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\asset\Entity\AssetInterface $entity */
$row['id'] = [
'#markup' => $entity
->id(),
];
$row['name'] = $entity
->toLink($entity
->label(), 'canonical')
->toRenderable();
$row['type'] = [
'#markup' => $entity
->getBundleLabel(),
];
return $row + parent::buildRow($entity);
}