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

Search does not include comments

Posted 4 hours 33 min ago by (izmeez) in How-To and Troubleshooting

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

Posted 22 hours 18 min ago by (suriyan2538) in How-To and Troubleshooting

Problem of access to the body field with a simple post

Posted 1 day 6 hours ago by (BKaernel) in How-To and Troubleshooting

Recent comments

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 10 hours 44 min ago by (suriyan2538) on:

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

Just go to the menu where you want to add your link.  Add your link and in the path search for "user". It's done. No need to use a token. Or perhaps this ? menu_attributes

Posted 11 hours 39 min ago by (BKaernel) on:

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

Please can you provide more information about the use case for this and also a screenshot or mockup of what you are trying to achieve. There is a request here (https://github.com/backdrop-...

Posted 15 hours 26 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) 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