Create a hook update for EBT slick slides updating the field image as "required" by default

Created on 18 March 2023, over 1 year ago
Updated 19 March 2023, over 1 year ago

Problem/Motivation

We worked in the task ✨ All fields in the Slick Slider as optional put a gap for editors create the block without the required fields Fixed to add the field Slick image as required in the paragraph type, because without this the content editors were able to save the block type without fill any data in the cms content. We already updated the config yml at config/install folder so it'll works fine for new sites installing the ebt_slick_slider, but for existent sites is necessary to create a hook update, because the Drupal system will run the config/install files only in the first install, but not for existent users.

Steps to reproduce

Proposed resolution

We can implement a hook_update_N that load the field on paragraph, set this as required and save the config object. With that users that already have installed will continue working fine with this update

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