You are here

protected function WebformEntityExportForm::getConfigName in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityExportForm.php \Drupal\webform\WebformEntityExportForm::getConfigName()

Get the webform's config file name (without *.yml).

Return value

string The webform's config file name (without *.yml).

3 calls to WebformEntityExportForm::getConfigName()
WebformEntityExportForm::form in src/WebformEntityExportForm.php
Gets the actual form array to be built.
WebformEntityExportForm::getYaml in src/WebformEntityExportForm.php
Get the webform's raw data.
WebformEntityExportForm::submitForm in src/WebformEntityExportForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

src/WebformEntityExportForm.php, line 73

Class

WebformEntityExportForm
Export webform configuration.

Namespace

Drupal\webform

Code

protected function getConfigName() {

  /** @var \Drupal\webform\WebformInterface $webform */
  $webform = $this->entity;
  $definition = $this->entityTypeManager
    ->getDefinition('webform');
  return $definition
    ->getConfigPrefix() . '.' . $webform
    ->getConfigTarget();
}