You are here

public function LogListBuilder::buildRow in Log entity 2.x

Same name and namespace in other branches
  1. 8 src/LogListBuilder.php \Drupal\log\LogListBuilder::buildRow()

File

src/LogListBuilder.php, line 28

Class

LogListBuilder
Defines a class to build a listing of Log entities.

Namespace

Drupal\log

Code

public function buildRow(EntityInterface $entity) {

  /** @var \Drupal\log\Entity\LogInterface $entity */
  $row['id'] = [
    '#markup' => $entity
      ->id(),
  ];
  $row['name'] = $entity
    ->toLink($entity
    ->label(), 'canonical')
    ->toRenderable();
  $row['type'] = [
    '#markup' => $entity
      ->getBundleLabel(),
  ];
  return $row + parent::buildRow($entity);
}