You are here

public function PriceModifierListBuilder::buildRow in Price 3.x

Same name and namespace in other branches
  1. 8 src/PriceModifierListBuilder.php \Drupal\price\PriceModifierListBuilder::buildRow()
  2. 3.0.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\price

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->toLink($entity
    ->label(), 'edit-form');
  return $row + parent::buildRow($entity);
}