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

Ubercart - Programmatically add product to cart and straight to Checkout

Posted 5 hours 58 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) in How-To and Troubleshooting

How to create a command-line (cli) routine or script (bee not required)

Posted 2 days 8 hours ago by (swampopus) in How-To and Troubleshooting

File hashing uploads made through TinyMCE

Posted 3 days 13 hours ago by RS Snyder (theflightrs) in How-To and Troubleshooting

Recent comments

No problem, let's see how it evolves.  I'd be happy to provide a suggested version if i could.  I will keep that in mind and try learn this hook chain hopefully very soon. I will...

Posted 1 day 10 hours ago by RS Snyder (theflightrs) on:

File hashing uploads made through TinyMCE

I could request hashing support, but that's the lazy way 🤣 I would appreciate it if you as an active maintainer would 'officially' add a hashing support...

Posted 1 day 10 hours ago by (indigoxela) on:

File hashing uploads made through TinyMCE

Hi, i understand the updating obstacle - not worth mentioning - hence it is a wacky (but working) patch until i know what to do. :-) One of my biggest wishes is to understand the hook...

Posted 1 day 10 hours ago by RS Snyder (theflightrs) on:

File hashing uploads made through TinyMCE

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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