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

missing "add block" in custom layout

Posted 1 day 2 hours ago by (pgrayove) in How-To and Troubleshooting

Unable to run update - fails with Connection timed out

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

Write Permission Problems on files, ../private and /tmp on my Laptop

Posted 1 week 1 hour ago by Francis Greaves (themetman) in How-To and Troubleshooting

Recent comments

UPDATE: I fixed the errors that I found in the logs. They were related to deleting an old blog content type pulled over from Drupal that was still referenced in one of the layouts. I updated...

Posted 4 hours 6 min ago by (pgrayove) on:

missing "add block" in custom layout

Hmmm... this sounds like a bug with Copy Blocks. Would this possibly be related: https://github.com/backdrop-contrib/copy_blocks/issues/26 https://github.com/backdrop-contrib/...

Posted 19 hours 10 min ago by Alejandro Cremaschi (argiepiano) on:

missing "add block" in custom layout

Also this error: Warning: Undefined array key "blog" in summary() (line 63 of /app/core/modules/layout/plugins/access/entity_bundle_layout_access.inc). I did recently delete an old blog...

Posted 21 hours 11 min ago by (pgrayove) on:

missing "add block" in custom layout

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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