You are here

public function WorkspaceListBuilder::buildRow in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/WorkspaceListBuilder.php \Drupal\opigno_moxtra\WorkspaceListBuilder::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/WorkspaceListBuilder.php, line 26

Class

WorkspaceListBuilder
Provides a list controller for opigno_moxtra_workspace entity.

Namespace

Drupal\opigno_moxtra

Code

public function buildRow(EntityInterface $entity) {

  /* @var \Drupal\opigno_moxtra\WorkspaceInterface $entity */
  $row['id'] = $entity
    ->id();
  $row['name'] = $entity
    ->toLink(NULL, 'edit-form');
  $row['binder_id'] = $entity
    ->getBinderId();
  return $row + parent::buildRow($entity);
}