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

Base table or view not found upgrading to 1.32.0, TRUNCATE {cache_book}

Posted 1 day 3 hours ago by (kali) in How-To and Troubleshooting

October 2, 2025 Weekly Meeting

Posted 3 days 19 hours ago by (izmeez) in Weekly Meetings

Content type field Default value - shouldn't it display on new content ?

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

Recent comments

Thank you very much for your fast answers and clear explanations ! I understand that the site is not corrupted and that there is no danger in leaving the code and the database in their...

Posted 19 hours 26 min ago by (kali) on:

Base table or view not found upgrading to 1.32.0, TRUNCATE {cache_book}

Until the official new release (coming soon), the error will ALSO show up when you clear caches, unless you fix this manually as above.

Posted 22 hours 44 min ago by Alejandro Cremaschi (argiepiano) on:

Base table or view not found upgrading to 1.32.0, TRUNCATE {cache_book}

If you want to try to fix it yourself now, I think you can manually set the schema version for the book module (in the system table) to 7000, and then try running the updates again. Test on a...

Posted 23 hours 38 min ago by laryn (laryn) on:

Base table or view not found upgrading to 1.32.0, TRUNCATE {cache_book}

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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