You are here

public function NewsletterListBuilder::buildRow in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/NewsletterListBuilder.php \Drupal\simplenews\NewsletterListBuilder::buildRow()
  2. 3.x src/NewsletterListBuilder.php \Drupal\simplenews\NewsletterListBuilder::buildRow()

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/NewsletterListBuilder.php, line 26

Class

NewsletterListBuilder
Defines a class to build a listing of simplenews newsletter entities.

Namespace

Drupal\simplenews

Code

public function buildRow(EntityInterface $entity) {
  $row['name'] = $entity
    ->label();
  return $row + parent::buildRow($entity);
}