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

Between Dates Views Filter not functioning as expected

Posted 7 hours 55 min ago by (onyx) in How-To and Troubleshooting

User seeing admin stuff

Posted 2 weeks 1 day ago by (adamg) in How-To and Troubleshooting

Search does not include comments

Posted 2 weeks 4 days ago by (izmeez) in How-To and Troubleshooting

Recent comments

But when setting End Date, and relative of -0 days or -1 days... Instead of "-0 days" use today and instead of -1 days use yesterday. Find some background re relative...

Posted 1 hour 6 min ago by (indigoxela) on:

Between Dates Views Filter not functioning as expected

Worth mentioning as it was in zulip chat by @yorkshirepudding I just tested and the two work together without issue as long as you don't use the "Exclude comments from Content...

Posted 1 week 3 days ago by (izmeez) on:

Search does not include 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 1 week 5 days ago by Martin Price | System Horizons Ltd (yorkshirepudding) 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