You are here

WebformEntityViewsData.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/WebformEntityViewsData.php

Namespace

Drupal\webform

File

src/WebformEntityViewsData.php
View source
<?php

namespace Drupal\webform;

use Drupal\views\EntityViewsData;

/**
 * Provides the views data for the webform entity type.
 */
class WebformEntityViewsData extends EntityViewsData {

  /**
   * {@inheritdoc}
   */
  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;
  }

}

Classes

Namesort descending Description
WebformEntityViewsData Provides the views data for the webform entity type.