wxt-8.x-3.011/modules/custom/wxt_ext/wxt_ext_workflow/wxt_ext_workflow.post_update.php
modules/custom/wxt_ext/wxt_ext_workflow/wxt_ext_workflow.post_update.php
<?php
/**
* @file
* Contains post-update functions for WxT Extend Workflow.
*
* Leveraged from code provided by Acquia for the Lightning distribution.
*/
use Drupal\wxt_core\ConfigHelper as Config;
/**
* Imports the moderated_content view.
*/
function wxt_ext_workflow_post_update_import_moderated_content_view() {
if (Drupal::moduleHandler()->moduleExists('views')) {
Config::forModule('content_moderation')
->optional()
->getEntity('view', 'moderated_content')
->save();
}
}
