RRSSBListBuilder.php in Ridiculously Responsive Social Sharing Buttons 8.2
File
src/RRSSBListBuilder.php
View source
<?php
namespace Drupal\rrssb;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class RRSSBListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Button set');
$header['follow'] = $this
->t('Button type');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['follow'] = $entity
->get("follow") ? $this
->t('Follow') : $this
->t('Share');
return $row + parent::buildRow($entity);
}
}