WizardListBuilder.php in Flexiform 8
File
contrib/wizard/src/WizardListBuilder.php
View source
<?php
namespace Drupal\flexiform_wizard;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
class WizardListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
return [
'id' => $this
->t('Wizard'),
'path' => $this
->t('Path'),
] + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['id'] = $entity
->toLink(NULL, 'edit-form');
$row['path'] = $entity
->get('path');
return $row + parent::buildRow($entity);
}
}