Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Updated addSearchListingWorkflows function. #50

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

MdNadimHossain
Copy link
Contributor

Updated the function to indicate the right config dependency.

Issue

The import failed due to the following reasons:                              
  Configuration <em class="placeholder">workflows.workflow.editorial</em> dep  
  ends on the <em class="placeholder">tide_search_listing</em> configuration   
  that will not exist after import. 

@@ -167,7 +167,7 @@ public function addSearchListingWorkflows() {
error_log(" tide_search - adding workflows for search listing");
$config = \Drupal::configFactory()->getEditable('workflows.workflow.editorial');
$dependencies = $config->get('dependencies.config');
$dependencies[] = 'tide_search_listing';
$dependencies[] = 'node.type.tide_search_listing';
$config->set('dependencies.config', $dependencies);
$type_settings = $config->get('type_settings.entity_types.node');
$type_settings[] = 'tide_search_listing';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one looks fine as this this is node type

Copy link
Contributor

@krakerag krakerag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing my bad code ;)

@MdNadimHossain MdNadimHossain merged commit 2271379 into develop Aug 11, 2023
@MdNadimHossain MdNadimHossain deleted the bug/fix-dependencies-in-workflow-editorial branch August 11, 2023 08:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants