SimpleAccessProfileListBuilder.php in Simple Access 8.3
File
src/Controller/SimpleAccessProfileListBuilder.php
View source
<?php
namespace Drupal\simple_access\Controller;
use Drupal\Core\Config\Entity\DraggableListBuilder;
use Drupal\Core\Entity\EntityInterface;
class SimpleAccessProfileListBuilder extends DraggableListBuilder {
protected $weightKey = 'weight';
public function getFormId() {
return 'simple_access_profile_list';
}
public function buildHeader() {
$header = [];
$header['label'] = $this
->t('Profile');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row = [];
$row['label'] = $entity
->label();
return $row + parent::buildRow($entity);
}
}