You are here

public function TemplateListBuilder::buildRow in Wysiwyg API template plugin 8.2

Same name and namespace in other branches
  1. 3.0.x src/TemplateListBuilder.php \Drupal\wysiwyg_template\TemplateListBuilder::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 DraggableListBuilder::buildRow

See also

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

File

src/TemplateListBuilder.php, line 32

Class

TemplateListBuilder
Provides a listing of Template entities.

Namespace

Drupal\wysiwyg_template

Code

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