You are here

protected function WebformElementViewsAbstract::tableName in Webform Views Integration 8.5

Generate views table name that represents a given element within a webform.

Parameters

array $element: Webform element for which to generate views table name.

\Drupal\webform\WebformInterface $webform: Webform for which to generate views table name.

Return value

string Views table name that represents provided webform element within provided webform.

1 call to WebformElementViewsAbstract::tableName()
WebformElementViewsAbstract::getViewsData in src/WebformElementViews/WebformElementViewsAbstract.php
Generate views data related to a given element of a given webform.

File

src/WebformElementViews/WebformElementViewsAbstract.php, line 126

Class

WebformElementViewsAbstract
Abstract implementation of webform element views handler.

Namespace

Drupal\webform_views\WebformElementViews

Code

protected function tableName($element, WebformInterface $webform) {
  return 'webform_submission_field_' . $webform
    ->id() . '_' . $element['#webform_key'];
}