You are here

public function PaymentMethodConfigurationListBuilder::buildHeader in Payment 8.2

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationListBuilder.php, line 48

Class

PaymentMethodConfigurationListBuilder
Lists payment method configurations..

Namespace

Drupal\payment\Entity\PaymentMethodConfiguration

Code

public function buildHeader() {
  $row['label'] = [
    'data' => $this
      ->t('Name'),
  ];
  $row['plugin'] = [
    'data' => $this
      ->t('Type'),
  ];
  $row['owner'] = array(
    'data' => $this
      ->t('Owner'),
    'class' => array(
      RESPONSIVE_PRIORITY_LOW,
    ),
  );
  $row['status'] = array(
    'data' => $this
      ->t('Status'),
    'class' => array(
      RESPONSIVE_PRIORITY_MEDIUM,
    ),
  );
  $row['operations'] = [
    'data' => $this
      ->t('Operations'),
  ];
  return $row;
}