summaryrefslogtreecommitdiffstats
path: root/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
diff options
context:
space:
mode:
authorLee Rowlands2017-07-29 07:08:18 (GMT)
committerLee Rowlands2017-07-29 07:08:18 (GMT)
commita16b9c74c20b37d17e3925a42aed2b787881bbea (patch)
tree19f828136ae3fdd0c237281c6063f1a267b46d8b /core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
parent04d69926b43f2c1ee025b5ab0a461143df6b2211 (diff)
Issue #2893778 by timmillwood, Sam152, Wim Leers: Remove deprecated Workflows methods
Diffstat (limited to 'core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php')
-rw-r--r--core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php b/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
index bb7d680..a0598fa 100644
--- a/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
+++ b/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
@@ -59,7 +59,7 @@ class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase {
->read($unprocessed_configuration);
$diff = array_diff_key($workflow_config['type_settings']['states'], $original_workflow_config['type_settings']['states']);
foreach (array_keys($diff) as $state_id) {
- $state = $workflow->getState($state_id);
+ $state = $workflow->getTypePlugin()->getState($state_id);
if ($workflow->getTypePlugin()->workflowStateHasData($workflow, $state)) {
$event->getConfigImporter()->logError($this->t('The moderation state @state_label is being used, but is not in the source storage.', ['@state_label' => $state->label()]));
}