function preview_link_update_8201 in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x preview_link.install \preview_link_update_8201()
Opts out existing site from multi entity support to retain existing behavior.
File
- ./
preview_link.install, line 27 - Install file.
Code
function preview_link_update_8201() : TranslatableMarkup {
$config = \Drupal::configFactory()
->getEditable('preview_link.settings');
$config
->set('multiple_entities', FALSE);
$config
->save(TRUE);
return \t("Updated preview link config.");
}