You are here

public function FormsStepsListBuilder::buildRow in Forms Steps 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

src/Controller/FormsStepsListBuilder.php, line 34

Class

FormsStepsListBuilder
Defines a class to build a listing of FormsSteps entities.

Namespace

Drupal\forms_steps\Controller

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\forms_steps\Entity\FormsSteps */
  $row['id'] = $entity
    ->id();
  $row['label'] = $entity
    ->label();
  $row['description'] = $entity
    ->getDescription();
  return $row + parent::buildRow($entity);
}