You are here

public function ContributorCategoryListBuilder::buildRow in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/ContributorCategoryListBuilder.php \Drupal\bibcite_entity\ContributorCategoryListBuilder::buildRow()

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 DraggableListBuilder::buildRow

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

modules/bibcite_entity/src/ContributorCategoryListBuilder.php, line 33

Class

ContributorCategoryListBuilder
Provides a listing of Contributor category entities.

Namespace

Drupal\bibcite_entity

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['id'] = [
    '#markup' => $entity
      ->id(),
  ];
  return $row + parent::buildRow($entity);
}