ScriptListBuilder.php in Script Manager 8
File
src/ScriptListBuilder.php
View source
<?php
namespace Drupal\script_manager;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class ScriptListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
return [
'label' => $this
->t('Name'),
] + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
return [
'label' => $entity
->label(),
] + parent::buildRow($entity);
}
}