public function BlockCategoryListingForm::buildRow in Layout Builder Browser 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/
Form/ BlockCategoryListingForm.php, line 33
Class
- BlockCategoryListingForm
- Builds a listing of block category entities.
Namespace
Drupal\layout_builder_browser\FormCode
public function buildRow(EntityInterface $entity) {
$row['label'] = Html::escape($entity
->label());
return $row + parent::buildRow($entity);
}