activity_logger.post_update.php in Open Social 8.9
Same filename and directory in other branches
- 8.4 modules/custom/activity_logger/activity_logger.post_update.php
- 8.5 modules/custom/activity_logger/activity_logger.post_update.php
- 8.6 modules/custom/activity_logger/activity_logger.post_update.php
- 8.7 modules/custom/activity_logger/activity_logger.post_update.php
- 8.8 modules/custom/activity_logger/activity_logger.post_update.php
- 10.3.x modules/custom/activity_logger/activity_logger.post_update.php
- 10.0.x modules/custom/activity_logger/activity_logger.post_update.php
- 10.1.x modules/custom/activity_logger/activity_logger.post_update.php
- 10.2.x modules/custom/activity_logger/activity_logger.post_update.php
Post update hooks for this module.
File
modules/custom/activity_logger/activity_logger.post_update.phpView source
<?php
/**
* @file
* Post update hooks for this module.
*/
/**
* Update message template settings based on configuration schema metadata.
*/
function activity_logger_post_update_apply_schema_changes() {
/** @var \Drupal\message\MessageTemplateInterface[] $message_templates */
$message_templates = \Drupal::entityTypeManager()
->getStorage('message_template')
->loadMultiple();
// Resaving all the messages should be enough, the schema was built to fit
// the messages.
foreach ($message_templates as $message_template) {
$message_template
->save();
}
}
Functions
Name | Description |
---|---|
activity_logger_post_update_apply_schema_changes | Update message template settings based on configuration schema metadata. |