Skip to content

Commit

Permalink
UHF-9507: Remove unit contact card field title
Browse files Browse the repository at this point in the history
  • Loading branch information
teroelonen committed Dec 20, 2024
1 parent c557cc1 commit 598a58a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ status: true
dependencies:
config:
- field.field.paragraph.unit_contact_card.field_unit_contact_heading
- field.field.paragraph.unit_contact_card.field_unit_contact_title
- field.field.paragraph.unit_contact_card.field_unit_contact_unit
- field.field.paragraph.unit_contact_card.field_unit_contact_use_address
- field.field.paragraph.unit_contact_card.field_unit_contact_use_details
Expand Down Expand Up @@ -94,5 +93,4 @@ content:
third_party_settings: { }
hidden:
created: true
field_unit_contact_title: true
status: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ status: true
dependencies:
config:
- field.field.paragraph.unit_contact_card.field_unit_contact_heading
- field.field.paragraph.unit_contact_card.field_unit_contact_title
- field.field.paragraph.unit_contact_card.field_unit_contact_unit
- field.field.paragraph.unit_contact_card.field_unit_contact_use_address
- field.field.paragraph.unit_contact_card.field_unit_contact_use_details
Expand All @@ -29,7 +28,6 @@ content:
weight: 1
region: content
hidden:
field_unit_contact_title: true
field_unit_contact_heading: true
field_unit_contact_use_address: true
field_unit_contact_use_details: true
Expand Down

This file was deleted.

This file was deleted.

10 changes: 8 additions & 2 deletions modules/helfi_tpr_config/helfi_tpr_config.install
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare(strict_types=1);
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\linkit\Entity\Profile;
use Drupal\field\Entity\FieldStorageConfig;

/**
* Grants required permissions.
Expand Down Expand Up @@ -381,9 +382,14 @@ function helfi_tpr_config_update_9052() : void {
}

/**
* UHF-9507: Change unit contact card heading logic.
* UHF-9507: Replace unit contact title with heading selector.
*/
function helfi_tpr_config_update_9073(): void {
function helfi_tpr_config_update_9074(): void {
$field = FieldStorageConfig::loadByName('paragraph', 'field_unit_contact_title');
if ($field) {
$field->delete();
}

\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

0 comments on commit 598a58a

Please sign in to comment.