public function PaymentMethodListBuilder::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 DraggableListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- payment/
uc_payment/ src/ PaymentMethodListBuilder.php, line 79
Class
- PaymentMethodListBuilder
- Defines a class to build a listing of payment method configuration entities.
Namespace
Drupal\uc_paymentCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$definition = $entity
->getPlugin()
->getPluginDefinition();
$row['plugin']['#markup'] = $definition['name'];
$row['status']['#markup'] = $entity
->status() ? $this
->t('Enabled') : $this
->t('Disabled');
return $row + parent::buildRow($entity);
}