You are here

public function EntitySubqueueListBuilder::buildRow in Entityqueue 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/EntitySubqueueListBuilder.php, line 99

Class

EntitySubqueueListBuilder
Defines a class that builds a listing of entity subqueues.

Namespace

Drupal\entityqueue

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['items'] = $this
    ->formatPlural(count($entity->items), '@count item', '@count items');
  return $row + parent::buildRow($entity);
}