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

custom module not showing up in modules list

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

TFA - how to setup fallback options 'per user'

Posted 2 days 18 hours ago by (clarkac) in How-To and Troubleshooting

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

Posted 1 week 16 hours ago by Erik Wesselius (zilvervos) in Other

Recent comments

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 1 day 22 hours ago by (ian) on:

custom module not showing up in modules list

If you haven't already, flush all the caches. If it is in the modules folder whether directly or in a custom folder it will show up. If not, something else is wrong with your site; check...

Posted 1 day 23 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

custom module not showing up in modules list

Awful idea! That's not how modules get installed! The number in db indicates the installed state and schema version. You're not supposed to fiddle in the database directly. There's an...

Posted 2 days 16 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