You are here

public function WebformEntityViewsData::getViewsData in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityViewsData.php \Drupal\webform\WebformEntityViewsData::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/WebformEntityViewsData.php, line 15

Class

WebformEntityViewsData
Provides the views data for the webform entity type.

Namespace

Drupal\webform

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['webform']['webform_bulk_form'] = [
    'title' => $this
      ->t('Webform operations bulk form'),
    'help' => $this
      ->t('Add a form element that lets you run operations on multiple webform.'),
    'field' => [
      'id' => 'webform_bulk_form',
    ],
  ];
  return $data;
}