You are here

public function WebformEntityHandler::defaultConfiguration in Webform Entity Handler 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/WebformHandler/WebformEntityHandler.php \Drupal\webform_entity_handler\Plugin\WebformHandler\WebformEntityHandler::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WebformHandlerBase::defaultConfiguration

File

src/Plugin/WebformHandler/WebformEntityHandler.php, line 96

Class

WebformEntityHandler
Create or update an entity with a webform submission values.

Namespace

Drupal\webform_entity_handler\Plugin\WebformHandler

Code

public function defaultConfiguration() {
  return [
    'operation' => self::DEFAULT_VALUE,
    'entity_type_id' => NULL,
    'entity_values' => [],
    'entity_revision' => FALSE,
    'states' => [
      WebformSubmissionInterface::STATE_COMPLETED,
    ],
  ];
}