function EntityListBuilder::buildRow
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildRow()
- 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildRow()
- 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::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.
See also
\Drupal\Core\Entity\EntityListBuilder::render()
1 call to EntityListBuilder::buildRow()
- EntityListBuilder::render in core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php - Builds the entity listing as renderable array for table.html.twig.
25 methods override EntityListBuilder::buildRow()
- ActionListBuilder::buildRow in core/
modules/ action/ src/ ActionListBuilder.php - Builds a row for an entity in the entity listing.
- BlockContentListBuilder::buildRow in core/
modules/ block_content/ src/ BlockContentListBuilder.php - Builds a row for an entity in the entity listing.
- BlockContentTypeListBuilder::buildRow in core/
modules/ block_content/ src/ BlockContentTypeListBuilder.php - Builds a row for an entity in the entity listing.
- CommentTypeListBuilder::buildRow in core/
modules/ comment/ src/ CommentTypeListBuilder.php - Builds a row for an entity in the entity listing.
- ConfigTestListBuilder::buildRow in core/
modules/ config/ tests/ config_test/ src/ ConfigTestListBuilder.php - Builds a row for an entity in the entity listing.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php, line 215
Class
- EntityListBuilder
- Defines a generic implementation to build a listing of entities.
Namespace
Drupal\Core\EntityCode
public function buildRow(EntityInterface $entity) {
$row['operations']['data'] = $this->buildOperations($entity);
return $row;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.