public function PostTypeListBuilder::buildRow in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.2 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.3 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.4 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.5 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.6 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.7 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 8.8 modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 10.0.x modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 10.1.x modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::buildRow()
- 10.2.x modules/social_features/social_post/src/PostTypeListBuilder.php \Drupal\social_post\PostTypeListBuilder::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.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- modules/
social_features/ social_post/ src/ PostTypeListBuilder.php, line 25
Class
- PostTypeListBuilder
- Provides a listing of Post type entities.
Namespace
Drupal\social_postCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
// You probably want a few more properties here...
return $row + parent::buildRow($entity);
}