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

Backdrop Live October 2026

Posted 3 days 2 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) in Meet-Ups and Events

custom module not showing up in modules list

Posted 1 week 1 day ago by (ian) in How-To and Troubleshooting

TFA - how to setup fallback options 'per user'

Posted 1 week 1 day ago by (clarkac) in How-To and Troubleshooting

Recent comments

Trying to push it to upstream 🤞 https://github.com/drush-ops/drush/pull/6621

Posted 16 hours 11 min ago by (varvashenia) on:

Using Drush 8 with php 8

Wow, thank you! 

Posted 18 hours 9 min ago by (jenlampton) on:

Using Drush 8 with php 8

Hi folks, I went ahead and ported all drush 8.x stuff to PHP 8.3 and completely ripped out the legacy Symfony 2 internals. You can check out the exact details of what was done in the PR...

Posted 1 day 3 hours ago by (varvashenia) on:

Using Drush 8 with php 8

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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