You are here

public function WebformSubmissionStorage::getSubmissionsColumns in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::getSubmissionsColumns()

Get submissions columns.

Return value

array An associative array of columns keyed by name.

Overrides WebformSubmissionStorageInterface::getSubmissionsColumns

File

src/WebformSubmissionStorage.php, line 663

Class

WebformSubmissionStorage
Defines the webform submission storage.

Namespace

Drupal\webform

Code

public function getSubmissionsColumns() {
  $columns = $this
    ->getColumns(NULL, NULL, NULL, FALSE);

  // Unset columns.
  // Note: 'serial' is displayed instead of 'sid'.
  unset($columns['serial'], $columns['label'], $columns['uuid'], $columns['in_draft'], $columns['completed'], $columns['changed'], $columns['sticky'], $columns['locked'], $columns['notes'], $columns['uid']);
  return $columns;
}