You are here

public function CaptchaPointListBuilder::buildRow in CAPTCHA 8

Builds a row for an entity in the entity listing.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.

Return value

array A render array structure of fields for this entity.

Overrides EntityListBuilder::buildRow

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/Entity/Controller/CaptchaPointListBuilder.php, line 26

Class

CaptchaPointListBuilder
Builds the list of capture points for the captcha point form.

Namespace

Drupal\captcha\Entity\Controller

Code

public function buildRow(EntityInterface $entity) {
  $row['form_id'] = $entity
    ->id();
  $row['captcha_type'] = $entity
    ->getCaptchaType();
  return $row + parent::buildRow($entity);
}