You are here

public function WorkflowListBuilder::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/WorkflowListBuilder.php, line 42

Class

WorkflowListBuilder
Defines a class to build a listing of Workflow entities.

Namespace

Drupal\forms_steps\Controller

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\forms_steps\Entity\FormsSteps */
  $row['id'] = $entity
    ->id();
  $row['instance_id'] = $entity->instance_id->value;
  $row['entity_type'] = $entity->entity_type->value;
  $row['bundle'] = $entity->bundle->value;
  $row['entity_id'] = $entity->entity_id->value;
  $row['form_mode'] = $entity->form_mode->value;
  $row['forms_steps'] = $entity->forms_steps->value;
  $row['step'] = $entity->step->value;
  return $row + parent::buildRow($entity);
}