Move block content creation methods to a trait

Created on 8 April 2019, almost 6 years ago
Updated 20 February 2025, about 1 month ago

Problem/Motivation

There are a lot of createBlockContentType() and createBlockContent() defined all over the place and this is not consistent with code reuse.

Proposed resolution

  • Centralize all createBlockContentType() and createBlockContent() methods in a new BlockContentCreationTrait.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

📌 Task
Status

Needs work

Version

11.0 🔥

Component

block_content.module

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024