You are here

protected function YamlFormSubmissionExporter::getYamlFormOptionsName in YAML Form 8

Get options name for current form and source entity.

Return value

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

3 calls to YamlFormSubmissionExporter::getYamlFormOptionsName()
YamlFormSubmissionExporter::deleteYamlFormOptions in src/YamlFormSubmissionExporter.php
Delete export options for the current form and entity.
YamlFormSubmissionExporter::getYamlFormOptions in src/YamlFormSubmissionExporter.php
Get export options for the current form and entity.
YamlFormSubmissionExporter::setYamlFormOptions in src/YamlFormSubmissionExporter.php
Set export options for the current form and entity.

File

src/YamlFormSubmissionExporter.php, line 186

Class

YamlFormSubmissionExporter
Form submission exporter.

Namespace

Drupal\yamlform

Code

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