public function TemplateListBuilder::buildRow in Wysiwyg API template plugin 3.0.x
Same name and namespace in other branches
- 8.2 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_templateCode
public function buildRow(EntityInterface $entity) : array {
$row['label'] = $entity
->label();
return $row + parent::buildRow($entity);
}