RemoteListBuilder.php in Entity Share 8.2
File
modules/entity_share_client/src/RemoteListBuilder.php
View source
<?php
declare (strict_types=1);
namespace Drupal\entity_share_client;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class RemoteListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Remote');
$header['url'] = $this
->t('URL');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label() . ' (' . $entity
->id() . ')';
$row['url'] = $entity
->get('url');
return $row + parent::buildRow($entity);
}
}