public function CmisConnectionEntityListBuilder::buildRow in CMIS API 8
Same name and namespace in other branches
- 8.2 src/CmisConnectionEntityListBuilder.php \Drupal\cmis\CmisConnectionEntityListBuilder::buildRow()
- 3.0.x 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 26
Class
- CmisConnectionEntityListBuilder
- Provides a listing of CMIS connection entities.
Namespace
Drupal\cmisCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$url = \Drupal\Core\Url::fromUserInput('/cmis/browser/' . $entity
->id());
$link = \Drupal\Core\Link::fromTextAndUrl($this
->t('Browse'), $url);
$row['process'] = $link;
return $row + parent::buildRow($entity);
}