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

Block title combo and 2/3 things

Posted 1 day 5 hours ago by (BKaernel) in Requests and Feedback

Create a new theme - Starter theme

Posted 6 days 12 hours ago by (BKaernel) in How-To and Troubleshooting

missing "add block" in custom layout

Posted 1 week 4 days ago by (pgrayove) in How-To and Troubleshooting

Recent comments

Of course. I simply give my impressions of a site builder. On one side, I found that BackdropCMS and Drupal have a great system to create a site, where it is possible to customize the...

Posted 5 hours 30 min ago by (BKaernel) on:

Block title combo and 2/3 things

It's great that everyone has a choice. I'm currently making a website where the H1 title is located at the top of the page in full width with a background image, 50vh height, how do you like...

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

Block title combo and 2/3 things

In the end, I use my <h1> with my custom layout just before the region for the content and i make a preprocess_theme for site_identity.  <?php print theme('site_identity'); ?>...

Posted 12 hours 23 min ago by (BKaernel) on:

Block title combo and 2/3 things

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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