You are here

public function ScheduledUpdateListBuilder::buildRow in Scheduled Updates 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

src/ScheduledUpdateListBuilder.php, line 74
Contains \Drupal\scheduled_updates\ScheduledUpdateListBuilder.

Class

ScheduledUpdateListBuilder
Defines a class to build a listing of Scheduled update entities.

Namespace

Drupal\scheduled_updates

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\scheduled_updates\Entity\ScheduledUpdate */
  $row['name'] = Link::fromTextAndUrl($entity
    ->label(), new Url('entity.scheduled_update.edit_form', array(
    'scheduled_update' => $entity
      ->id(),
  )));
  $row['type'] = $this->updateUtils
    ->getUpdateTypeLabel($entity);
  return $row + parent::buildRow($entity);
}