Trigger entity validation in \Drupal\Core\DefaultContent\Importer::importContent()

Created on 19 April 2024, 10 months ago
Updated 16 May 2024, 9 months ago

Problem/Motivation

Pointed out by @larowlan in ✨ Add recipes api as experimental API to core Needs review - we don't check if the entity is valid before we save it (how Drupal).

Steps to reproduce

Proposed resolution

Validate the entity prior to saving and report it. Decide if this should lead to a recipe error or not. I think it should.
Check default content module for any existing issues about this.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

11.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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