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

CKEditor5: Here's how to prevent "Select Image from Library" from appearing

Posted 10 hours 7 min ago by (Chrys) in How-To and Troubleshooting

Link field in a Content Type is malformed for annonymous user- Permission issue?

Posted 2 days 13 hours ago by (Chrys) in How-To and Troubleshooting

My Webform Worksheets have disappeared

Posted 3 weeks 17 hours ago by Francis Greaves (themetman) in How-To and Troubleshooting

Recent comments

Thanks!! Easiest for me to just give permission for anon users to see the admin theme. That worked. It's just for this one page.

Posted 2 days 6 hours ago by (Chrys) on:

Link field in a Content Type is malformed for annonymous user- Permission issue?

It looks like the screenshot of what you show it should look like is the admin theme whereas what they see is the front end theme. By default, such users won't have permissions to see the...

Posted 2 days 12 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Link field in a Content Type is malformed for annonymous user- Permission issue?

I've added a new recipe.  The recipe has no PHP code. It has two module dependencies (one of those depends on another contrib module and both depend on core modules that are normally enabled)...

Posted 5 days 10 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

The Future of Configuration Recipes for Backdrop CMS

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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