Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildRow()
  2. 9 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()

19 calls to EntityListBuilder::buildRow()
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.
ConfigTestListBuilder::buildRow in core/modules/config/tests/config_test/src/ConfigTestListBuilder.php
Builds a row for an entity in the entity listing.
ConfigTranslationEntityListBuilder::buildRow in core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php
Builds a row for an entity in the entity listing.
ContactFormListBuilder::buildRow in core/modules/contact/src/ContactFormListBuilder.php
Builds a row for an entity in the entity listing.

... See full list

20 methods override EntityListBuilder::buildRow()
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.
ConfigTestListBuilder::buildRow in core/modules/config/tests/config_test/src/ConfigTestListBuilder.php
Builds a row for an entity in the entity listing.
ConfigTranslationEntityListBuilder::buildRow in core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php
Builds a row for an entity in the entity listing.
ContactFormListBuilder::buildRow in core/modules/contact/src/ContactFormListBuilder.php
Builds a row for an entity in the entity listing.

... See full list

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\Entity

Code

public function buildRow(EntityInterface $entity) {
  $row['operations']['data'] = $this
    ->buildOperations($entity);
  return $row;
}