You are here

public function StatusListBuilder::buildRow in Heartbeat 8

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

modules/statusmessage/src/StatusListBuilder.php, line 29

Class

StatusListBuilder
Defines a class to build a listing of Status entities.

Namespace

Drupal\statusmessage

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\statusmessage\Entity\Status */
  $row['id'] = $entity
    ->id();
  $row['name'] = $this
    ->l($entity
    ->label(), new Url('entity.status.edit_form', array(
    'status' => $entity
      ->id(),
  )));
  return $row + parent::buildRow($entity);
}