You are here

public function WebformAnalysis::setComponents in Webform Analysis 8

Set components and save webform.

Parameters

array $components: The components name.

Overrides WebformAnalysisInterface::setComponents

File

src/WebformAnalysis.php, line 47

Class

WebformAnalysis
WebformAnalysis.

Namespace

Drupal\webform_analysis

Code

public function setComponents(array $components = []) {
  $this->webform
    ->setThirdPartySetting('webform_analysis', 'components', $components);
}