Create a hook_update_N to set the field image on carousel as required on sites that is currently using the ebt_carousel

Created on 11 March 2023, almost 2 years ago
Updated 18 March 2023, almost 2 years ago

Problem/Motivation

Recently we configured the image on carousel to be required at this ticket EBR Carousel without required fields allow editors create a Carousel without any value Fixed it configured the paragraph type with the new field as required, which is good. But now we also need to create a hook_update_N for sites that already have the ebt_carousel installed since Drupal read the config from folder config/install in the install and these users already installed

Steps to reproduce

Proposed resolution

Create a hook_update_N, Load the paragraph type object and field -> Set the field as required in the object -> save the entity

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