You are here

public function WizardListBuilder::buildRow in Flexiform 8

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

contrib/wizard/src/WizardListBuilder.php, line 26

Class

WizardListBuilder
List builder for flexiform_wizards.

Namespace

Drupal\flexiform_wizard

Code

public function buildRow(EntityInterface $entity) {
  $row['id'] = $entity
    ->toLink(NULL, 'edit-form');
  $row['path'] = $entity
    ->get('path');
  return $row + parent::buildRow($entity);
}