Create a hook_update_N to hide a field n sites that is currently using ebt_slick_slider

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

Problem/Motivation

We realized that the body field is currently being used in the CMS block type but isn't being used in the FE. In order to have consistence we fixed it at ✨ Hide a field that isn't being used at ebt_slick_slider Fixed that hide the field in the configs. Now we need to create a hook_update to apply this on sites that currently have the ebt_slick_slider installed, since drupal consider the config/install during the install process but not in the update process

Steps to reproduce

Proposed resolution

  1. Implement hook_update_N
  2. Load the config_entity_form_display object
  3. Load the yml from config/install folder where the config was exported
  4. Convert to array using YML parser
  5. Set in the settings object
  6. Save

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: works as designed

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.69.0 2024