You are here

public function FooTableBreakpointListBuilder::buildRow in FooTable 8

Same name and namespace in other branches
  1. 8.2 src/FooTableBreakpointListBuilder.php \Drupal\footable\FooTableBreakpointListBuilder::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/FooTableBreakpointListBuilder.php, line 28

Class

FooTableBreakpointListBuilder
Defines a class to build a listing of FooTable breakpoint entities.

Namespace

Drupal\footable

Code

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