You are here

public function LicenseListBuilder::buildRow in Commerce License 8.2

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/LicenseListBuilder.php, line 63

Class

LicenseListBuilder
Defines a class to build a listing of License entities.

Namespace

Drupal\commerce_license

Code

public function buildRow(EntityInterface $entity) {

  /* @var $entity \Drupal\commerce_license\Entity\License */
  $row['id'] = $entity
    ->id();
  $row['type'] = $this->licenseTypes[$entity
    ->bundle()]['label'];
  return $row + parent::buildRow($entity);
}