-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EWPP-1777: Move update of fields to their modules.
- Loading branch information
Showing
6 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...dules/oe_content_event_person_reference/oe_content_event_person_reference.post_update.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Post update functions for OpenEuropa Content Event Person reference module. | ||
*/ | ||
|
||
declare(strict_types = 1); | ||
|
||
use Drupal\field\Entity\FieldConfig; | ||
|
||
/** | ||
* Set "composite revisions" option for reference fields. | ||
*/ | ||
function oe_content_event_person_reference_post_update_00001(): void { | ||
$field_config = FieldConfig::load('oe_event_speaker.oe_default.oe_person'); | ||
$field_config->setThirdPartySetting('composite_reference', 'composite_revisions', FALSE); | ||
$field_config->save(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...nt_organisation_person_reference/oe_content_organisation_person_reference.post_update.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Post update functions for OpenEuropa Organisation Person Reference module. | ||
*/ | ||
|
||
declare(strict_types = 1); | ||
|
||
use Drupal\field\Entity\FieldConfig; | ||
|
||
/** | ||
* Set "composite revisions" option for reference fields. | ||
*/ | ||
function oe_content_organisation_person_reference_post_update_00001(): void { | ||
$field_config = FieldConfig::load('node.oe_organisation.oe_organisation_persons'); | ||
$field_config->setThirdPartySetting('composite_reference', 'composite_revisions', FALSE); | ||
$field_config->save(); | ||
} |
19 changes: 19 additions & 0 deletions
19
...dules/oe_content_organisation_reference/oe_content_organisation_reference.post_update.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Post update functions for OpenEuropa Organisation Reference module. | ||
*/ | ||
|
||
declare(strict_types = 1); | ||
|
||
use Drupal\field\Entity\FieldConfig; | ||
|
||
/** | ||
* Set "composite revisions" option for reference fields. | ||
*/ | ||
function oe_content_organisation_reference_post_update_00001(): void { | ||
$field_config = FieldConfig::load('oe_contact.oe_organisation_reference.oe_node_reference'); | ||
$field_config->setThirdPartySetting('composite_reference', 'composite_revisions', FALSE); | ||
$field_config->save(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters