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

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

Posted 1 day 55 min ago by (Chrys) in How-To and Troubleshooting

My Webform Worksheets have disappeared

Posted 2 weeks 6 days 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 3 weeks 5 days 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 18 hours 36 min 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 1 day 6 min 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 3 days 22 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