You are here

public function CmisConnectionEntityListBuilder::buildRow in CMIS API 3.0.x

Same name and namespace in other branches
  1. 8.2 src/CmisConnectionEntityListBuilder.php \Drupal\cmis\CmisConnectionEntityListBuilder::buildRow()
  2. 8 src/CmisConnectionEntityListBuilder.php \Drupal\cmis\CmisConnectionEntityListBuilder::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

src/CmisConnectionEntityListBuilder.php, line 30

Class

CmisConnectionEntityListBuilder
Provides a listing of CMIS connection entities.

Namespace

Drupal\cmis

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label();
  $row['id'] = $entity
    ->id();
  $url = Url::fromUserInput('/cmis/browser/' . $entity
    ->id());
  $link = Link::fromTextAndUrl($this
    ->t('Browse'), $url);
  $row['process'] = $link;
  return $row + parent::buildRow($entity);
}