CaptchaPointListBuilder.php in CAPTCHA 8
File
src/Entity/Controller/CaptchaPointListBuilder.php
View source
<?php
namespace Drupal\captcha\Entity\Controller;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class CaptchaPointListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['form_id'] = $this
->t('Captcha Point form ID');
$header['captcha_type'] = $this
->t('Captcha Point challenge type');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['form_id'] = $entity
->id();
$row['captcha_type'] = $entity
->getCaptchaType();
return $row + parent::buildRow($entity);
}
}