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