Skip to content
Snippets Groups Projects
Commit 9bccb0c8 authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Merge branch 'ISAICP-9042' into 'develop'

ISAICP-9042: Don't publish OSS Catalogue collection if OSS is disabled.

See merge request digit/digit-joinup-dev!1577
parents 74bc7a18 a9a7c8e0
No related branches found
No related tags found
1 merge request!183Release v1.112.0
......@@ -38,6 +38,7 @@ drupal:
- Custom error handler
- Permissions
- Null mail collector
- EU OSS Catalogue
site-clone:
- Main settings
- Databases
......@@ -116,6 +117,7 @@ drupal:
- Custom queue services
- Test mail collector
- Monolog
- EU OSS Catalogue
phpunit:
- Main settings
- Databases
......@@ -133,6 +135,7 @@ drupal:
- Verbose error logging
- Custom queue services
- Test mail collector
- EU OSS Catalogue
prod:
- Main settings
- Site email
......
......@@ -17,9 +17,9 @@ function joinup_oss_catalogue_deploy_111200(): void {
/** @var \Drupal\collection\Entity\CollectionInterface $collection */
$collection = \Drupal::entityTypeManager()->getStorage('rdf_entity')
->load(OssCatalogueCollectionInterface::COLLECTION_ENTITY_ID);
$state = joinup_oss_catalogue_is_enabled() ? 'published' : 'draft';
$collection
?->set('field_ar_state', 'published')
?->set('field_ar_state', $state)
->set('path', ['alias' => '/eu-oss-catalogue', 'pathauto' => 0])
->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment