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

Gallery inside post content

Posted 1 day 16 hours ago by (BKaernel) in How-To and Troubleshooting

Block title combo and 2/3 things

Posted 4 days 12 hours ago by (BKaernel) in Requests and Feedback

Create a new theme - Starter theme

Posted 1 week 2 days ago by (BKaernel) in How-To and Troubleshooting

Recent comments

This has always been available using a separate module. Now added to the core, thanks for developers.

Posted 17 hours 9 min ago by (Enthusiast) on:

Gallery inside post content

It's the reason why i refuse "builder" because finally, you have a "student blog". But a gallery it's not a crazy thinks. All CMS propose it. Too many constraints can also scare your...

Posted 18 hours 27 min ago by (BKaernel) on:

Gallery inside post content

There is such a thing as a "publication format" — all publications must be made in the same style, which was developed by the designer, and the task of the editor is to fill in the provided...

Posted 18 hours 44 min ago by (Enthusiast) on:

Gallery inside post content

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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