Skip to main content
backdrop Forum
  • Forum
  • FAQ
  • Following
  • About
  • Wishlist
  • My account
    • Log In
    • Create an account
  • Try Backdrop CMS
    • Demo Backdrop CMS
    • Download version 1.35.2
    • More ways to try Backdrop
  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

Portfolio — A Free Portfolio Theme for Backdrop CMS

Posted 1 day 20 hours ago by (shabib) in Requests and Feedback

Backup & Migrate path for restore

Posted 2 days 3 hours ago by (geoma) in How-To and Troubleshooting

Files uploaded using add file

Posted 2 days 14 hours ago by (aubergine) in How-To and Troubleshooting

Recent comments

Ah, got it. You are right, this is a bug. I just opened a bug report: https://github.com/backdrop/backdrop-issues/issues/7238 Hopefully, this will be addressed soon. Thanks for...

Posted 1 day 7 hours ago by Alejandro Cremaschi (argiepiano) on:

Files uploaded using add file

I think, you are misunderstanding what i said. 1.admin/structure/file-types/settings = field/uploaded (or anything else) 2.admin/content/files (Manage Files), (the +Add files) link,...

Posted 1 day 7 hours ago by (aubergine) on:

Files uploaded using add file

The setting on admin/structure/file-types/settings is only for files uploaded via Content > Manage files. Not for files uploaded via a file field. File fields have their own setting for...

Posted 1 day 13 hours ago by Alejandro Cremaschi (argiepiano) on:

Files uploaded using add file

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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