You are here

public function RemoteListBuilder::buildRow in Entity Share 8.3

Same name and namespace in other branches
  1. 8 modules/entity_share_client/src/RemoteListBuilder.php \Drupal\entity_share_client\RemoteListBuilder::buildRow()
  2. 8.2 modules/entity_share_client/src/RemoteListBuilder.php \Drupal\entity_share_client\RemoteListBuilder::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/entity_share_client/src/RemoteListBuilder.php, line 28

Class

RemoteListBuilder
Provides a listing of Remote entities.

Namespace

Drupal\entity_share_client

Code

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