You are here

public function ContributorListBuilder::buildRow in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/ContributorListBuilder.php \Drupal\bibcite_entity\ContributorListBuilder::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 EntityListBuilder::buildRow

See also

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

File

modules/bibcite_entity/src/ContributorListBuilder.php, line 27

Class

ContributorListBuilder
Defines a class to build a listing of Contributor entities.

Namespace

Drupal\bibcite_entity

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\bibcite_entity\Entity\Contributor */
  $row['name'] = Link::createFromRoute($entity
    ->label(), 'entity.bibcite_contributor.canonical', [
    'bibcite_contributor' => $entity
      ->id(),
  ]);
  return $row + parent::buildRow($entity);
}