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

Prevent Backdrop from sending emails

Posted 2 days 26 min ago by (Peter.B.Eriksen) in How-To and Troubleshooting

Layout also for /node/add/ forms?

Posted 2 days 28 min ago by (Peter.B.Eriksen) in How-To and Troubleshooting

Commerce shop system from Drupal

Posted 3 days 17 hours ago by (Peter.B.Eriksen) in How-To and Troubleshooting

Recent comments

nice find! the links for the most recently updated issues in the core and contrib queues are a great way to stay on top of things—especially now that the feature freeze is just around the corner...

Posted 11 hours 46 min ago by (harold 112) on:

Seeing what issues are new

A simple way — use Field Group to create a container for fields https://backdropcms.org/project/field_group and CSS Flex оr Grid to alignment. You can also create Fieldsets to...

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

Layout also for /node/add/ forms?

Yes. The are several ways to do this: Install Mail System and select "Testing" for delivery in admin/config/system/mailsystem Install Maillog / Mail developer...

Posted 1 day 16 hours ago by Alejandro Cremaschi (argiepiano) on:

Prevent Backdrop from sending emails

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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