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.2
    • 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

Making Theme Development Easier in Backdrop CMS

Posted 2 days 18 hours ago by (shabib) in Initiatives

Weekly Meetings Dec 3rd 2026

Posted 4 days 9 hours ago by (indigoxela) in Weekly Meetings

Improving Theme Presentation and Promoting Backdrop CMS

Posted 4 days 18 hours ago by (shabib) in Initiatives

Recent comments

On my site I have pages with a few hundred comments, functioning as a guestbook. All names are followed by the infamous (not verified) qualification. Following up on this Forum post I tried to...

Posted 6 hours 1 min ago by (Ben Varkenshand) on:

print $author without (not verified)

Hi swampopus, I'd recommend to notify the security team first. A member of the team will contact you and the team will create a private repository for the next steps (fix the issue, find a...

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

Weekly Meetings Dec 3rd 2026

Security question: If we have found (or been informed of) a security issue in our own modules, do we just go ahead and put out a patch?  Or is there some other process? What...

Posted 2 days 23 hours ago by (swampopus) on:

Weekly Meetings Dec 3rd 2026

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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