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 1 hour 15 min ago by (adamg) in How-To and Troubleshooting

Search does not include comments

Posted 3 days 4 hours ago by (izmeez) in How-To and Troubleshooting

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

Posted 3 days 22 hours ago by (suriyan2538) in How-To and Troubleshooting

Recent comments

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 58 min 52 sec ago by laryn (laryn) on:

User seeing admin stuff

This appears to be the issue that was created, https://github.com/backdrop/backdrop-issues/issues/6401

Posted 2 days 3 hours ago by (izmeez) on:

format for image upload directory spec

Thank you for your answer. What I want to do is display usernames or user images in a menu, similar to many community websites. The basic menu that Backdrop currently provides is a "...

Posted 3 days 10 hours ago by (suriyan2538) on:

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

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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