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

Problems with HTML content and text formats

Posted 1 week 11 hours ago by (beckdalecreative) in Installation Questions

Language negotiation only working when logged in

Posted 1 week 4 days ago by (redjives) in How-To and Troubleshooting

How to monetize a Backdrop site

Posted 2 weeks 1 day ago by (Ph882) in How-To and Troubleshooting

Recent comments

Coming from Drupal, I would recommend using the shop system Commerce rather than Ubercart for the features you’re looking for. It has already been ported to Backdrop CMS. General...

Posted 1 day 22 hours ago by (Matt75) on:

How to monetize a Backdrop site

When logged in: On a page with a path prefix it shows the language of the prefix. On the front page if I add the path prefix it shows the language of that prefix...

Posted 4 days 22 hours ago by (redjives) on:

Language negotiation only working when logged in

Hi! The description is still very vague and lacks step-by-step instructions on how to reproduce. It doesn't include the version of Backdrop either, nor a list of contrib modules you are using...

Posted 6 days 13 hours ago by Alejandro Cremaschi (argiepiano) on:

Problems with HTML content and text formats

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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