Skip to main content
backdrop Backdrop Forum
  • Welcome!
    • Login
    • Register
  • Forum
  • FAQ
  • Following
  • About
  • Wishlist
  1. Home ยป
  2. [DX] [D8] Add a `validate()` method to entity classes

[DX] [D8] Add a `validate()` method to entity classes

In Drupal 8, classes that are used in order to implement a content entity (which extend the ContentEntityBase class) have a validate() method that validates the values entered when creating the entity.

A similar method should be introduced in Backdrop and added to EntityInterface.

GitHub Link: 
https://github.com/backdrop/backdrop-issues/issues/6061
GitHub Issue #: 
6061

Weekly office hours

Bring your questions to our weekly virtual office hours, every Wednesday. Everyone is welcome.

Recent topics

Looking for examples of (local) news websites running on BackdropCMS

Posted 1 day 14 hours ago by Erik Wesselius (zilvervos) in Other

CKEditor5: Here's how to prevent "Select Image from Library" from appearing

Posted 3 days 11 hours ago by (Chrys) in How-To and Troubleshooting

Link field in a Content Type is malformed for annonymous user- Permission issue?

Posted 5 days 14 hours ago by (Chrys) in How-To and Troubleshooting

Recent comments

The answer is off topic, but I'll add a little. 1. Backend. Why you don't need links to other websites: Since you know the structure of your site and content, you can decide for...

Posted 17 hours 44 min ago by (Enthusiast) on:

Looking for examples of (local) news websites running on BackdropCMS

Hi Chrys, AI isn't always your best friend. A form alter hook is correct, but hiding by CSS isn't ideal. You could look at how the TinyMCE integration does it, which provides hiding...

Posted 23 hours 58 min ago by (indigoxela) on:

CKEditor5: Here's how to prevent "Select Image from Library" from appearing

Hi zilvervos..., Welcome back to Backdrop. I've just started a new "news" website for a client, but it's at the very early stages. I'm hoping to have a soft launch in a couple...

Posted 1 day 14 hours ago by (DrAlbany) on:

Looking for examples of (local) news websites running on BackdropCMS

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org