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

What Makes a Good CMS Experience for Website Owners and Developers?

Posted 1 hour 32 min ago by (Retherd) in Other

Portfolio — A Free Portfolio Theme for Backdrop CMS

Posted 4 days 20 hours ago by (shabib) in Requests and Feedback

Backup & Migrate path for restore

Posted 5 days 3 hours ago by (geoma) in How-To and Troubleshooting

Recent comments

Here's a fun hack: You can remove any css file in a custom theme by defining a file with the same name in the theme's info file, but not actually having a file with that name in the theme...

Posted 2 days 4 hours ago by (jenlampton) on:

How to get rid of grid-flexbox.css

What is demoralizing for the maintaineers when someone mentions the flaw of a useless buggy feature? A different opinion should always be a motivation not otherwise. I will mark this one...

Posted 2 days 13 hours ago by (aubergine) on:

Files uploaded using add file

You lost me there. I'm not sure what you mean. Anyway, it's very demoralizing to volunteers who maintain this beautiful (free) project to read your very negative and frequent rants about how...

Posted 2 days 14 hours ago by Alejandro Cremaschi (argiepiano) on:

Files uploaded using add file

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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