SlideGroupListBuilder.php in Drupal Slider 8.2
File
src/Controller/SlideGroupListBuilder.php
View source
<?php
namespace Drupal\drupal_slider\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class SlideGroupListBuilder extends ConfigEntityListBuilder {
protected function getModuleName() {
return 'drupal_slider';
}
public function buildHeader() {
$header['label'] = $this
->t('Group name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
return $row + parent::buildRow($entity);
}
public function render() {
$build[] = parent::render();
return $build;
}
}