You are here

public function DynamicLayoutListBuilder::buildRow in Dynamic Layouts 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/DynamicLayoutListBuilder.php, line 91

Class

DynamicLayoutListBuilder
Defines a class to build a listing of user Dynamic Layouts.

Namespace

Drupal\dynamic_layouts

Code

public function buildRow(EntityInterface $entity) {

  /** @var \Drupal\dynamic_layouts\Entity\DynamicLayout $entity */
  $row['label'] = $entity
    ->label();
  $row['category'] = Html::escape($entity
    ->getCategory());
  return $row + parent::buildRow($entity);
}