You are here

public function WebformSubmissionStorage::getUserDefaultColumnNames in Webform 8.5

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

Get user default submission columns used to display results.

Parameters

\Drupal\webform\WebformInterface|null $webform: A webform.

\Drupal\Core\Entity\EntityInterface|null $source_entity: A webform submission source entity.

\Drupal\Core\Session\AccountInterface|null $account: A user account.

bool $include_elements: Flag that include all form element in the list of columns.

Return value

array An associative array of columns names.

Overrides WebformSubmissionStorageInterface::getUserDefaultColumnNames

1 call to WebformSubmissionStorage::getUserDefaultColumnNames()
WebformSubmissionStorage::getUserColumns in src/WebformSubmissionStorage.php
Get user submission columns used to display results.

File

src/WebformSubmissionStorage.php, line 851

Class

WebformSubmissionStorage
Defines the webform submission storage.

Namespace

Drupal\webform

Code

public function getUserDefaultColumnNames(WebformInterface $webform = NULL, EntityInterface $source_entity = NULL, AccountInterface $account = NULL, $include_elements = TRUE) {
  return [
    'serial',
    'created',
    'remote_addr',
  ];
}