You are here

public function DomainAliasListBuilder::buildRow in Domain Access 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()

1 call to DomainAliasListBuilder::buildRow()
DomainAliasListBuilder::render in domain_alias/src/DomainAliasListBuilder.php
Builds the entity listing as renderable array for table.html.twig.

File

domain_alias/src/DomainAliasListBuilder.php, line 34

Class

DomainAliasListBuilder
User interface for the domain alias overview screen.

Namespace

Drupal\domain_alias

Code

public function buildRow(EntityInterface $entity) {
  $row = [];
  $row['label'] = $entity
    ->label();
  $redirect = $entity
    ->getRedirect();
  $row['redirect'] = empty($redirect) ? $this
    ->t('None') : $redirect;
  $row['environment'] = $entity
    ->getEnvironment();
  $row += parent::buildRow($entity);
  return $row;
}