Skip to main content
backdrop Forum
  • Forum
  • FAQ
  • Following
  • About
  • Wishlist
  • My account
    • Log In
    • Create an account
  • Try Backdrop CMS
    • Demo Backdrop CMS
    • Download version 1.35.1
    • More ways to try Backdrop
  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

How to troubleshoot interactive image cropping modules?

Posted 1 day 1 hour ago by Jim Bisset (Jim) in How-To and Troubleshooting

A bug in Email field

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

Warnings after installing Simplenews 1.x-1.2.3

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

Recent comments

So the implication is that another module is causing the trouble. Now for the slow process of elimination... Sounds plausible. And good luck with digging...

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

How to troubleshoot interactive image cropping modules?

I’ve just set up a clean install in MAMP and Focal Point works fine. *sighs So the implication is that another module is causing the trouble. Now for the slow process of elimination...

Posted 23 hours 16 min ago by Jim Bisset (Jim) on:

How to troubleshoot interactive image cropping modules?

Here’s the edit screen with the Focal Point instructions below: If I click on the Preview link, I get this:   And no errors in the console. 

Posted 1 day ago by Jim Bisset (Jim) on:

How to troubleshoot interactive image cropping modules?

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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