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 3 days 3 hours ago by (adamg) in How-To and Troubleshooting

Search does not include comments

Posted 6 days 7 hours ago by (izmeez) in How-To and Troubleshooting

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

Posted 1 week 1 hour ago by (suriyan2538) in How-To and Troubleshooting

Recent comments

There is also Node Comments Search - this searches the node and all comments (default search is node and first page of comments) as part of the content search. Izzy's module above is a separate...

Posted 6 hours 40 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Search does not include comments

I have created a new module comment_search

Posted 7 hours 11 min ago by (izmeez) on:

Search does not include 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 7 hours 46 min ago by (Enthusiast) on:

Search does not include comments

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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