public function CivicrmWebformHandler::alterElements in Webform CiviCRM Integration 8.5
Alter webform submission webform elements.
Note: This hook is ignored by conditional logic.
Parameters
array $elements: An associative array containing the webform elements.
\Drupal\webform\WebformInterface $webform: The webform.
Overrides WebformHandlerBase::alterElements
File
- src/
Plugin/ WebformHandler/ CivicrmWebformHandler.php, line 102
Class
- CivicrmWebformHandler
- CiviCRM Webform Handler plugin.
Namespace
Drupal\webform_civicrm\Plugin\WebformHandlerCode
public function alterElements(array &$elements, WebformInterface $webform) {
$this->civicrm
->initialize();
$settings = $this->configuration;
$data = $settings['data'];
parent::alterElements($elements, $webform);
// TODO: Change the autogenerated stub
}