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

Language negotiation only working when logged in

Posted 3 days 1 hour ago by (redjives) in How-To and Troubleshooting

How to monetize a Backdrop site

Posted 1 week 8 hours ago by (Ph882) in How-To and Troubleshooting

Update Report thows "Access denied You are not authorized to access this page."

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

Recent comments

Thank you for the suggestion and for helping clarify the possible relation between user status and newsletter subscriptions.  I followed your advice and opened an issue in the...

Posted 2 days 7 hours ago by Antony Milenkov (amilenkov) on:

Re-enable Simplenews newsletter subscriptions that had been erroneously disabled

@Amilenkov, I agree with your thoughts regarding the relation between subscription and user status. Are you up to open an issue report in the Simplenews issue queue with the suggestion to make...

Posted 2 days 20 hours ago by Olaf Grabienski (Olafski) on:

Re-enable Simplenews newsletter subscriptions that had been erroneously disabled

Usually, I use the detection methods "URL" and "Default", and I'm not very experienced with the "Browser" method. So I've tested your combination of detection methods, and the languages switched...

Posted 2 days 20 hours ago by Olaf Grabienski (Olafski) on:

Language negotiation only working when logged in

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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