ImageZoomOptionsListBuilder.php in Image Zoom 8.3
File
src/ImageZoomOptionsListBuilder.php
View source
<?php
namespace Drupal\imagezoom;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class ImageZoomOptionsListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Options profile');
$header['id'] = $this
->t('Machine name');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
return $row + parent::buildRow($entity);
}
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('There are no @label yet.', [
'@label' => $this->entityType
->getPluralLabel(),
]);
return $build;
}
}