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

July 9th, 2026 - Weekly Meetings

Posted 2 hours 3 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) in Weekly Meetings

Let users search for NIDs?

Posted 19 hours 31 min ago by (opentype) in How-To and Troubleshooting

Between Dates Views Filter not functioning as expected

Posted 6 days 11 hours ago by (onyx) in How-To and Troubleshooting

Recent comments

[DX] Add layout machine name as a class to the body element Two dashes -- or single dash - between label and value...

Posted 1 hour 59 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

July 9th, 2026 - Weekly Meetings

Just to say I discovered an issue with doing this, which I have documented here. https://github.com/backdrop/backdrop-issues/issues/7168 To make this work, before this issue is...

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

Let users search for NIDs?

You could probably do this with a View where the exposed filter is the node id Ah, interesting idea. Thanks! Would you kindly consider creating links in the...

Posted 18 hours 22 min ago by (opentype) on:

Let users search for NIDs?

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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