API | Modules Unraveled

094 API Changes in D8 with Théodore Biadala - Modules Unraveled Podcast

Photo of Théodore Biadala

APIs

  • What are some of the APIs that have changed from D7 to D8?
  • Javascript frontend changes
    • Reduce use of jQuery
  • PHP API changes
    • Declare script dependencies in Yaml file
    • Removing drupal_add_js and drupal_add_css in favor of attachments
    • Can’t add scripts/css/js in .info files
  • How to test Javascript and frontend
  • Documentation
    • api.drupal.org only covers php documentation

NodeSquirrel Ad

Have you heard of/used NodeSquirrel?
Use "StartToGrow" it's a 12-month free upgrade from the Start plan to the Grow plan. So, using it means that the Grow plan will cost $5/month for the first year instead of $10. (10 GB storage on up to 5 sites)