public function WebformSubmissionViewsData::getViewsData in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionViewsData.php \Drupal\webform\WebformSubmissionViewsData::getViewsData()
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- src/
WebformSubmissionViewsData.php, line 15
Class
- WebformSubmissionViewsData
- Provides the views data for the webform submission entity type.
Namespace
Drupal\webformCode
public function getViewsData() {
$data = parent::getViewsData();
// Disable hook_webform_submission_query_access_alter() to remove
// performance issues related to loading all webforms.
// $data['webform_submission']['table']['base']['access query tag'] = 'webform_submission_access';
$data['webform_submission']['webform_submission_bulk_form'] = [
'title' => $this
->t('Webform submission operations bulk form'),
'help' => $this
->t('Add a form element that lets you run operations on multiple submissions.'),
'field' => [
'id' => 'webform_submission_bulk_form',
],
];
return $data;
}