
| Current Path : /var/www/html/pallets/web/core/modules/tour/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/pallets/web/core/modules/tour/tour.post_update.php |
<?php
/**
* @file
* Post update functions for Tour.
*/
use Drupal\Core\Config\Entity\ConfigEntityUpdater;
use Drupal\tour\Entity\Tour;
/**
* Convert Joyride selectors to `selector` property.
*
* @see tour_tour_presave()
*/
function tour_post_update_joyride_selectors_to_selector_property(array &$sandbox = NULL) {
$config_entity_updater = \Drupal::classResolver(ConfigEntityUpdater::class);
$config_entity_updater->update($sandbox, 'tour', function (Tour $tour) {
return _tour_update_joyride($tour, FALSE);
});
}