public function CountryListBuilder::buildRow in Ubercart 8.4
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
- uc_country/
src/ CountryListBuilder.php, line 35
Class
- CountryListBuilder
- Provides a listing of countries.
Namespace
Drupal\uc_countryCode
public function buildRow(EntityInterface $entity) {
$row['title'] = $entity
->label();
$row['code'] = $entity
->id();
return $row + parent::buildRow($entity);
}