3 namespace Drupal\responsive_image;
5 use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
6 use Drupal\Core\Entity\EntityInterface;
9 * Provides a listing of responsive image styles.
11 class ResponsiveImageStyleListBuilder extends ConfigEntityListBuilder {
16 public function buildHeader() {
17 $header['label'] = t('Label');
18 $header['id'] = t('Machine name');
19 return $header + parent::buildHeader();
25 public function buildRow(EntityInterface $entity) {
26 $row['label'] = $entity->label();
27 $row['id'] = $entity->id();
28 return $row + parent::buildRow($entity);
34 public function getDefaultOperations(EntityInterface $entity) {
35 $operations = parent::getDefaultOperations($entity);
36 $operations['duplicate'] = [
37 'title' => t('Duplicate'),
39 'url' => $entity->urlInfo('duplicate-form'),