public function FieldCollectionListBuilder::buildRow in Field collection 8
Same name and namespace in other branches
- 8.3 src/FieldCollectionListBuilder.php \Drupal\field_collection\FieldCollectionListBuilder::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
- src/
FieldCollectionListBuilder.php, line 18
Class
- FieldCollectionListBuilder
- Provides a listing of field collections.
Namespace
Drupal\field_collectionCode
public function buildRow(EntityInterface $entity) {
$row['title'] = [
'data' => $entity
->label(),
'class' => [
'menu-label',
],
];
return $row + parent::buildRow($entity);
}