Implements hook_update_n to hide a field that isn't being used at Image Gallery

Created on 25 March 2023, over 1 year ago
Updated 26 March 2023, over 1 year ago

Problem/Motivation

At this ticket Disable the unused field at ebt_image_gallery Fixed we're hiding a field that isn't being used at block type EBT Image Gallery. Now in order to make the same change on sites that already have the ebt_image_gallery installed we also need to implement a hook_update_N to hide this field as well, since the yml at config/install folder is executed during the install but not in the update. For the update we need to use hook_update

Steps to reproduce

Proposed resolution

  1. Implement a hook update to update the core.entity_form_display.block_content.ebt_image_gallery.default
  2. Implement hook_update_N
  3. load the config object for core.entity_form_display.block_content.ebt_image_gallery.default
  4. load the yml file created at Disable the unused field at ebt_image_gallery Fixed
  5. Parse the yml file into array data
  6. Set the data in the config object
  7. Save the config

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024