function BlockContentTypeListBuilder::buildRow
Same name in other branches
- 9 core/modules/block_content/src/BlockContentTypeListBuilder.php \Drupal\block_content\BlockContentTypeListBuilder::buildRow()
- 8.9.x core/modules/block_content/src/BlockContentTypeListBuilder.php \Drupal\block_content\BlockContentTypeListBuilder::buildRow()
- 10 core/modules/block_content/src/BlockContentTypeListBuilder.php \Drupal\block_content\BlockContentTypeListBuilder::buildRow()
Overrides EntityListBuilder::buildRow
File
-
core/
modules/ block_content/ src/ BlockContentTypeListBuilder.php, line 40
Class
- BlockContentTypeListBuilder
- Defines a class to build a listing of block type entities.
Namespace
Drupal\block_contentCode
public function buildRow(EntityInterface $entity) {
$row['type'] = $entity->toLink(NULL, 'edit-form')
->toString();
$row['description']['data']['#markup'] = $entity->getDescription();
return $row + parent::buildRow($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.