public function ContentModelUpdater::cleanup in Panopoly 8.2
Final cleanup.
File
- modules/
panopoly/ panopoly_media/ src/ Update/ ContentModelUpdater.php, line 64
Class
- ContentModelUpdater
- Applies changes to media content model from schema versions 8204 to 8205.
Namespace
Drupal\panopoly_media\UpdateCode
public function cleanup() {
// Set the YouTube nocookie config per the video_embed_field config.
$vefConfig = $this
->getConfigStorage()
->read('video_embed_field.settings');
if (isset($vefConfig['privacy_mode'])) {
$config = $this
->getConfigStorage()
->read('panopoly_media.settings');
$config['youtube_nocookie'] = $vefConfig['privacy_mode'];
$this
->getConfigStorage()
->write('panopoly_media.settings', $config);
}
}