Act on a tour being inserted or updated.
This hook is invoked before the tour object is saved to configuration.
\Drupal\tour\Plugin\Core\Entity\Tour $entity: The tour object.
function hook_tour_presave($entity) {
if ($entity
->id() == 'tour-entity-create-test-en') {
$entity
->set('label', $entity
->label() . ' alter');
}
}