function EntityListBuilder::buildRow

Same name and namespace in other branches
  1. 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()

6 methods override EntityListBuilder::buildRow()
ConfigTranslationEntityListBuilder::buildRow in core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php
Builds a row for an entity in the entity listing.
FieldConfigListBuilder::buildRow in core/modules/field_ui/src/FieldConfigListBuilder.php
Builds a row for an entity in the entity listing.
FieldStorageConfigListBuilder::buildRow in core/modules/field_ui/src/FieldStorageConfigListBuilder.php
Builds a row for an entity in the entity listing.
MediaListBuilder::buildRow in core/modules/media/src/MediaListBuilder.php
Builds a row for an entity in the entity listing.
MediaTypeListBuilder::buildRow in core/modules/media/src/MediaTypeListBuilder.php
Builds a row for an entity in the entity listing.

... See full list

File

core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 174

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.