You are here

public function ContributorRoleListBuilder::buildRow in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/ContributorRoleListBuilder.php \Drupal\bibcite_entity\ContributorRoleListBuilder::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/ContributorRoleListBuilder.php, line 33

Class

ContributorRoleListBuilder
Provides a listing of Contributor role 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);
}