Adjust post update hooks based on the current version of the module

Created on 19 February 2025, about 2 months ago

Problem/Motivation

When saving the view, we see the following error:

Deprecated function: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Core\Config\Entity\Query\Condition->compile() (line 39 of core/lib/Drupal/Core/Config/Entity/Query/Condition.php).

This is because the UUID for the configured view is empty.

Steps to reproduce

Proposed resolution

Originally the new field UI was going to have the section library view as the parent so it was important for it to exist. That is no longer the case, so removing the portion of the update hook that overwrote the entire config for the section library view.

Additionally, the associated post update hook to set the field_ui_base_route and wasn't updated when the field UI was moved.

Also added conditional post-update hooks for folks who already updated to a dev version of the module.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jastraat

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024