You are here

public function GridStackVariantListBuilder::buildRow in GridStack 8.2

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 GridStackListBuilder::buildRow

See also

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

File

modules/gridstack_ui/src/Controller/GridStackVariantListBuilder.php, line 33

Class

GridStackVariantListBuilder
Provides a listing of GridStack optionsets.

Namespace

Drupal\gridstack_ui\Controller

Code

public function buildRow(EntityInterface $entity) {
  $row['source'] = [
    '#markup' => $entity
      ->source(),
  ];
  return $row + parent::buildRow($entity);
}