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 10 hours 31 min ago by (Retherd) in Other

Portfolio — A Free Portfolio Theme for Backdrop CMS

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

Backup & Migrate path for restore

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

Recent comments

Welcome to the Backdrop CMS community! For me, Backdrop CMS came to deliver exactly what I had wished for in Drupal 7 — especially its low resource consumption and its ability to run on...

Posted 8 hours 53 min ago by (shabib) on:

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

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 13 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 22 hours ago by (aubergine) 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