public function RemoteListBuilder::buildRow in Entity Share 8.3
Same name and namespace in other branches
- 8 modules/entity_share_client/src/RemoteListBuilder.php \Drupal\entity_share_client\RemoteListBuilder::buildRow()
- 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_clientCode
public function buildRow(EntityInterface $entity) {
$row = [];
$row['label'] = $entity
->label() . ' (' . $entity
->id() . ')';
$row['url'] = $entity
->get('url');
return $row + parent::buildRow($entity);
}