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

Backdrop Live October 2026

Posted 20 min 57 sec ago by Martin Price | System Horizons Ltd (yorkshirepudding) in Meet-Ups and Events

custom module not showing up in modules list

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

TFA - how to setup fallback options 'per user'

Posted 5 days 21 hours ago by (clarkac) in How-To and Troubleshooting

Recent comments

Thanks for the response, Herb! Since I posted that I did some more testing and have posted this issue https://github.com/backdrop-contrib/tfa_basic/issues/33 In fact, if both email...

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

TFA - how to setup fallback options 'per user'

I'll test this tomorrow to see if I can replicate the problem and report back.  It's not "per user" so it should be working.

Posted 1 day 16 hours ago by (herb) on:

TFA - how to setup fallback options 'per user'

As I work through things I flush the caches after every change I make. As far as I can tell I have the custom module in the correct place (/modules/custom/fix_zero_search) and the file...

Posted 5 days 51 min ago by (ian) on:

custom module not showing up in modules list

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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