public function PriceModifierListBuilder::buildRow in Price 3.0.x
Same name and namespace in other branches
- 8 src/PriceModifierListBuilder.php \Drupal\price\PriceModifierListBuilder::buildRow()
- 3.x src/PriceModifierListBuilder.php \Drupal\price\PriceModifierListBuilder::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/
PriceModifierListBuilder.php, line 24
Class
- PriceModifierListBuilder
- Defines the list builder.
Namespace
Drupal\priceCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->toLink($entity
->label(), 'edit-form');
return $row + parent::buildRow($entity);
}