You are here

protected function WebformSubmissionExporter::getWebformOptionsName in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionExporter.php \Drupal\webform\WebformSubmissionExporter::getWebformOptionsName()

Get options name for current webform and source entity.

Return value

string Settings name as 'webform.export.{entity_type}.{entity_id}'.

3 calls to WebformSubmissionExporter::getWebformOptionsName()
WebformSubmissionExporter::deleteWebformOptions in src/WebformSubmissionExporter.php
Delete export options for the current webform and entity.
WebformSubmissionExporter::getWebformOptions in src/WebformSubmissionExporter.php
Get export options for the current webform and entity.
WebformSubmissionExporter::setWebformOptions in src/WebformSubmissionExporter.php
Set export options for the current webform and entity.

File

src/WebformSubmissionExporter.php, line 204

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

protected function getWebformOptionsName() {
  if ($entity = $this
    ->getSourceEntity()) {
    return 'results.export.' . $entity
      ->getEntityTypeId() . '.' . $entity
      ->id();
  }
  else {
    return 'results.export';
  }
}