public function MiconParagraphsTypeListBuilder::buildRow in Micon 2.x
Same name and namespace in other branches
- 8 micon_paragraphs/src/MiconParagraphsTypeListBuilder.php \Drupal\micon_paragraphs\MiconParagraphsTypeListBuilder::buildRow()
File
- micon_paragraphs/
src/ MiconParagraphsTypeListBuilder.php, line 16
Class
- MiconParagraphsTypeListBuilder
- Provides a listing of ParagraphsType.
Namespace
Drupal\micon_paragraphsCode
public function buildRow(EntityInterface $entity) {
$row = parent::buildRow($entity);
if (isset($row['icon_file'])) {
$icon = micon_paragraphs_icon($entity);
if ($icon) {
$row['icon_file'] = [];
$row['icon_file']['data']['#markup'] = micon()
->setIcon($icon);
}
}
return $row;
}