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

Create a new theme - Starter theme

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

missing "add block" in custom layout

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

Unable to run update - fails with Connection timed out

Posted 1 week 23 hours ago by (lias) in How-To and Troubleshooting

Recent comments

If your goal is to learn how to create your own themes, I recommend using the Stark theme from the core and adding whatever you need to accomplish the task as you build your site. It would be a...

Posted 31 min 42 sec ago by (Enthusiast) on:

Create a new theme - Starter theme

Hi I'm not aware of any SCSS starter themes.  I myself use SCSS a lot using the native Dart Sass compiler and also don't use composer. I started with the Bedrock theme and am slowly...

Posted 4 hours 3 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Create a new theme - Starter theme

I am withdrawing my question for the following reason: https://forum.backdropcms.org/comment/8960#comment-8960

Posted 4 days 34 sec ago by (Enthusiast) on:

Error when trying to check for updates

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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