You are here

function _webform_config_delete in Webform 6.x

Same name and namespace in other branches
  1. 8.5 includes/webform.editor.inc \_webform_config_delete()

Delete config editor file references.

Parameters

\Drupal\Core\Config\Config $config: An editable configuration object.

See also

webform_uninstall()

2 calls to _webform_config_delete()
WebformEditorTest::testWebformConfigurationFiles in tests/src/Functional/WebformEditorTest.php
Tests webform configuration files.
webform_uninstall in ./webform.install
Implements hook_uninstall().

File

includes/webform.editor.inc, line 97
Webform module editor file upload hooks.

Code

function _webform_config_delete(Config $config) {
  $uuids = _webform_get_array_file_uuids($config
    ->getRawData());
  _webform_delete_file_usage($uuids, 'config', $config
    ->getName(), 0);
}