protected function WebformCliService::drush_webform_composer_set_disable_tls in Webform 8.5
Same name and namespace in other branches
- 6.x src/Commands/WebformCliService.php \Drupal\webform\Commands\WebformCliService::drush_webform_composer_set_disable_tls()
Set composer disable tls.
This is needed when CKEditor's HTTPS server's SSL is not working properly.
Parameters
object $data: Composer JSON data.
2 calls to WebformCliService::drush_webform_composer_set_disable_tls()
- WebformCliService::drush_webform_composer_update in src/
Commands/ WebformCliService.php - Implements drush_hook_COMMAND().
- WebformCliService::drush_webform_libraries_composer in src/
Commands/ WebformCliService.php - Implements drush_hook_COMMAND().
File
- src/
Commands/ WebformCliService.php, line 1148
Class
- WebformCliService
- Drush version agnostic commands.
Namespace
Drupal\webform\CommandsCode
protected function drush_webform_composer_set_disable_tls(&$data) {
// Remove disable-tls config.
if (isset($data->config) && isset($data->config->{'disable-tls'})) {
unset($data->config->{'disable-tls'});
}
if ($this
->drush_get_option('disable-tls')) {
$data->config->{'disable-tls'} = TRUE;
}
}