Create a hook update to set the field "Slide Image" as required in the Paragraph Type "ebt_slideshow"

Created on 21 March 2023, over 1 year ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

Recently we fixed the Fix the behaviour the content editors are able to create a custom block of "ebt_slideshow" without fill any field Fixed updating the paragraph type "ebt_slideshow " and adding the field "field_ebt_slideshow_slide" as required. Now we need a task to set the field as required for users that already have it installed, because Drupal will read the folder config/install only during the install process

Steps to reproduce

Proposed resolution

Create a hook_update_N
Load the field config object
set it as required
save the config object

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