We started testing some of the new features on the old site and we got to see how the old site was built
Soon we realized that the data structure needs to be improved
New site and data migration is needed
Pros:
Cons:
Code was open sourced:
https://github.com/lauriii/lka_content_import
7 vs 101 contributed modules
Local tasks didn't support caching at all - actually they broke the whole caching
Local tasks in core was converted into blocks and sufficient cacheable metadata was added
7 / 29 modules are supporting / extending cores or contributed modules functionality
Most of the modules contains site specific business logic
In Drupal 8 you don't need Drupalist anymore to write this logic - it can be generic PHP devleoper
In Drupal 8 we are mostly using Unit tests
Pros
Cons
https://github.com/lauriii/contact_form_formatter
https://github.com/lauriii/subpathauto
https://www.drupal.org/project/block_node_type_negate
Multiple bug fixes to:
Drupal Core
Display Suite
Pathauto
xmlsitemap
Inline Entity Form
base/
blocks/
components/
_dependencies.scss
maintenance-page.scss
print.scss
partials/
styles.scss
52 template overrides
We are using Twig extend functionality everywhere
{% extends "page.html.twig" %}
{% block title %}
{% endblock %}
page--node--article.html.twig
Open core issue: https://www.drupal.org/node/953034
Problem is that everything is loaded lazily, so we don't know even at the template level if something is going to be empty.
When this was needee we used CSS and in one use case we had to fall back to early rendering.
Goal in Aava.fi is to show always up to date information
-> in Drupal 7 no caching at all
This is a good example of a site that is buildable on Drupal 8