A few weeks ago, I introduced you to the research portion of our work around the Drupal experience manager. This week, I will show you the work my team and I did to redesign the visual elements from Drupal 8’s basic setup, including type, color, components, and icons.
It’s no secret that our team loves Drupal. The release of Drupal 8 became an opportunity for us to do a thorough investigation on ways to improve our core offerings, experience, and interface. In this post, we will discuss how we researched our content management system’s user experience, and how we established the next steps of our strategy to improve our custom Drupal 8 platform.
By default, Drupal 8 comes optimized for performance. If you've use the standard install profile, you might find that it's difficult to develop or debug changes to the way an entity is displayed. I spent an hour or so last night trying to figure out why my code in
hook_node_view as behaving strangely. Code would run once, and then not again, and if I made changes they wouldn't show up. Very strange!
Drupal 8 does away with
drupal_add_js (see the change record for more info). In its place, you'll need to use
#attached on render arrays. While this seems pretty straightforward when adding css stored in files, you might question how to attach inline CSS or JS. Here's an example: