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

My Webform Worksheets have disappeared

Posted 12 hours 38 min ago by Francis Greaves (themetman) in How-To and Troubleshooting

Importing the staged config throws an error: another field with the same name already exists

Posted 6 days 14 hours ago by Francis Greaves (themetman) in How-To and Troubleshooting

Comments Enhanced

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

Recent comments

well @herb I cannot believe it, but the webform module was there in modules on the disc, but missing in the listed modules, so I delete the module folder, and downloaded it again. Then...

Posted 10 hours 21 min ago by Francis Greaves (themetman) on:

My Webform Worksheets have disappeared

The only thing I can think of is to make sure Webform module is enabled and that the content type that needs to contain the webforms has Webform enabled for it. Edit the content type and make...

Posted 12 hours 23 min ago by (herb) on:

My Webform Worksheets have disappeared

@yorkshirepudding, In the end I fixed it by deleting the config/active folder contents, copying the config/staging/ files into config/active, importing the database again and clearing the caches...

Posted 6 days 8 hours ago by Francis Greaves (themetman) on:

Importing the staged config throws an error: another field with the same name already exists

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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