You are here

public function CacheflushEntityListBuilder::buildRow in CacheFlush 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/cacheflush_ui/src/CacheflushEntityListBuilder.php, line 26

Class

CacheflushEntityListBuilder
Defines a class to build a listing of Cacheflush entity entities.

Namespace

Drupal\cacheflush_ui

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\cacheflush_entity\Entity\CacheflushEntity */
  $row['id'] = $entity
    ->id();
  return $row + parent::buildRow($entity);
}