Skip to content
Snippets Groups Projects
Commit 89400d42 authored by Davyd Burianuvatyi's avatar Davyd Burianuvatyi
Browse files

Issue #3384007: Add content type Camp to field_location_reference field

parent c43a9e0a
No related branches found
No related tags found
1 merge request!15feat: Issue [#3384007]: Add content type Camp to field_location_reference field
......@@ -25,4 +25,5 @@ settings:
auto_create_bundle: ''
target_bundles_no_dep:
branch: branch
camp: camp
field_type: entity_reference
......@@ -64,3 +64,16 @@ function lb_related_articles_blocks_update_9001(&$sandbox) {
'views.view.related_articles',
]);
}
/**
* Add content type Camp to field_location_reference field
*/
function lb_related_articles_blocks_update_9002(&$sandbox) {
$path = \Drupal::service('extension.list.module')->getPath('lb_related_articles_blocks') . '/config/optional';
/** @var \Drupal\config_import\ConfigImporterService $config_importer */
$config_importer = \Drupal::service('config_import.importer');
$config_importer->setDirectory($path);
$config_importer->importConfigs([
'field.field.block_content.lb_related_articles.field_location_reference',
]);
}
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