public function WebformSubmissionStorage::getUsersSubmissionsColumns in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformSubmissionStorage.php \Drupal\webform\WebformSubmissionStorage::getUsersSubmissionsColumns()
Get user submissions columns.
Return value
array An associative array of columns keyed by name.
Overrides WebformSubmissionStorageInterface::getUsersSubmissionsColumns
File
- src/
WebformSubmissionStorage.php, line 681
Class
- WebformSubmissionStorage
- Defines the webform submission storage.
Namespace
Drupal\webformCode
public function getUsersSubmissionsColumns() {
$columns = $this
->getColumns(NULL, NULL, NULL, FALSE);
// Unset columns.
// Note: Displaying 'label' instead of 'serial' or 'sid'.
unset($columns['sid'], $columns['serial'], $columns['uuid'], $columns['in_draft'], $columns['completed'], $columns['changed'], $columns['sticky'], $columns['locked'], $columns['notes'], $columns['uid'], $columns['webform_id'], $columns['entity'], $columns['operations']);
return $columns;
}