You are here

public function WebformVariantBase::getConfiguration in Webform 8.5

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

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::getConfiguration

File

src/Plugin/WebformVariantBase.php, line 289

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function getConfiguration() {
  return [
    'id' => $this
      ->getPluginId(),
    'label' => $this
      ->getLabel(),
    'notes' => $this
      ->getNotes(),
    'variant_id' => $this
      ->getVariantId(),
    'element_key' => $this
      ->getElementKey(),
    'status' => $this
      ->getStatus(),
    'weight' => $this
      ->getWeight(),
    'settings' => $this->configuration,
  ];
}