RoyalSliderOptionSetListBuilder.php in RoyalSlider Integration 8
File
src/RoyalSliderOptionSetListBuilder.php
View source
<?php
namespace Drupal\royalslider;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class RoyalSliderOptionSetListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabel($entity);
return $row + parent::buildRow($entity);
}
public function render() {
$build = parent::render();
$build['#empty'] = $this
->t('There are no optionsets available.');
return $build;
}
}