You are here

lightning_workflow.post_update.php in Lightning Workflow 8.3

Contains post-update functions for Lightning Workflow.

File

lightning_workflow.post_update.php
View source
<?php

/**
 * @file
 * Contains post-update functions for Lightning Workflow.
 */
use Drupal\lightning_core\ConfigHelper as Config;

/**
 * Imports the moderated_content view.
 */
function lightning_workflow_post_update_import_moderated_content_view() {
  if (Drupal::moduleHandler()
    ->moduleExists('views')) {
    Config::forModule('content_moderation')
      ->optional()
      ->getEntity('view', 'moderated_content')
      ->save();
  }
}

Functions

Namesort descending Description
lightning_workflow_post_update_import_moderated_content_view Imports the moderated_content view.