public function CkeditorTemplateListBuilder::buildRow in Ckeditor templates user interface 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 DraggableListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
Controller/ CkeditorTemplateListBuilder.php, line 72
Class
- CkeditorTemplateListBuilder
- Builds the list of ckeditor templates for the ckeditor template form.
Namespace
Drupal\ckeditor_templates_ui\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id']['#markup'] = $entity
->id();
return $row + parent::buildRow($entity);
}