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

User seeing admin stuff

Posted 2 days 20 hours ago by (adamg) in How-To and Troubleshooting

Search does not include comments

Posted 5 days 23 hours ago by (izmeez) in How-To and Troubleshooting

How can I display the username or user profile picture in the menu?

Posted 6 days 17 hours ago by (suriyan2538) in How-To and Troubleshooting

Recent comments

If there is no response, alternatively, you can use a View with a list of comments, with a filter based on the comment text. I haven't tried it myself, I just got an idea.

Posted 24 min 39 sec ago by (Enthusiast) on:

Search does not include comments

Backdrop CMS:                    1.34.0 Installation profile:            standard PHP version:                     8.4.21 Drupal 7 compatibility:          on Database server...

Posted 2 days 17 hours ago by (adamg) on:

User seeing admin stuff

Sounds maybe like something is caching pages for all users when it should be caching per user -- just a wild first guess. (If this was so, she would have gotten an error if she tried to click on...

Posted 2 days 20 hours ago by laryn (laryn) on:

User seeing admin stuff

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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