real-world drupal 8: the good, the bad and the ugly!

12
Real World Drupal 8: The Good, The Bad and The Ugly! Neerav Mehta Red Crackle, The Drupal Experts http://redcrackle.com Dec 17, 2015

Upload: red-crackle-the-drupal-experts

Post on 14-Apr-2017

6.184 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Real-world Drupal 8: The Good, The Bad and The Ugly!

Real World Drupal 8: The Good, The Bad and The Ugly!

Neerav MehtaRed Crackle, The Drupal Experts

http://redcrackle.comDec 17, 2015

Page 2: Real-world Drupal 8: The Good, The Bad and The Ugly!

Overview

• Pros and cons of Drupal 8 as compared to Drupal 7

• Is this the right time to upgrade your site to Drupal 8?

Page 3: Real-world Drupal 8: The Good, The Bad and The Ugly!

Pros

• Configuration Management• Twig– Easier to learn for themers– Automatic code quality since PHP tags are not

allowed

Page 4: Real-world Drupal 8: The Good, The Bad and The Ugly!

PHPTemplate vs Twig

PHPTemplate

Twig

Page 5: Real-world Drupal 8: The Good, The Bad and The Ugly!

PHPTemplate Mess: node.tpl.php

Page 6: Real-world Drupal 8: The Good, The Bad and The Ugly!

Entities

• Feature complete entities with common API• Drupal 7

• Drupal 8

Page 7: Real-world Drupal 8: The Good, The Bad and The Ugly!

Field Access

• Drupal 7

• Drupal 8

Page 8: Real-world Drupal 8: The Good, The Bad and The Ugly!

AnnotationsDrupal 7

Drupal 8

Page 9: Real-world Drupal 8: The Good, The Bad and The Ugly!

Pros

• All admin list pages are views• Quick Edit• Symfony– Good documentation

Page 10: Real-world Drupal 8: The Good, The Bad and The Ugly!

Cons

• Harder to learn for a Drupal developer with no exposure to MVC

• Harder to debug (will improve with experience)

• Breakpoint not possible in twig (although could be put in compiled version) or annotations

Page 11: Real-world Drupal 8: The Good, The Bad and The Ugly!

Time to Upgrade?• Depends!• Contrib modules are not ready

– Installation errors– Released Modules in D8: Workflow, Views Slideshow, Field Group– Dev Modules in D8: Token, Global Redirect, Pathauto, Field Collection– Modules not in D8: Profile 2, OG

• Migration path exists but is incomplete, has bugs and is being improved on– Supported: nodes, users, taxonomy, URL alias, standard date formats– Not Supported: Views, blocks (?), custom date formats

• Theme and custom modules will need to be developed from scratch.• Small informational site with only a few contrib modules => Yes• Medium to large site with lots of contrib modules => No

Page 12: Real-world Drupal 8: The Good, The Bad and The Ugly!

Q&A