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

Comments Enhanced

Posted 3 hours 30 min ago by (izmeez) in How-To and Troubleshooting

Why not add a Github star?

Posted 1 day 8 hours ago by (izmeez) in How-To and Troubleshooting

Wierd happenings regarding updates...

Posted 1 day 12 hours ago by (ian) in How-To and Troubleshooting

Recent comments

@yorkshirepudding thank you for the additional info on improving discoverability and a handy way to keep a list of projects for reuse.

Posted 1 day 2 hours ago by (izmeez) on:

Why not add a Github star?

It is a good point @izmeez and when I was researching repo discoverability I found that GitHub search does prioritise matches with more stars. This is what I was researching for:...

Posted 1 day 5 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Why not add a Github star?

Do you have a separate development environment and transfer database and config between sites?

Posted 1 day 8 hours ago by (izmeez) on:

Wierd happenings regarding updates...

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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