31
Devel D8 - Release party Luca Lusso 3 marzo 2017 Wellnet

[drupalday2017] - Devel - D8 release party

Embed Size (px)

Citation preview

Page 1: [drupalday2017] - Devel - D8 release party

Devel

D8 - Release party

Luca Lusso

3 marzo 2017

Wellnet

Page 2: [drupalday2017] - Devel - D8 release party

Introduction

Page 3: [drupalday2017] - Devel - D8 release party

About me

• Luca Lusso

• Senior software architect in Wellnet

• Teacher for www.corsidrupal.it

• (co-)mantainer of Devel, Vardumper, Monolog, XHProf, ...

• @lussoluca on Twitter

• lussoluca on drupal.org

1

Page 4: [drupalday2017] - Devel - D8 release party

Devel

Devel module turns 8!

The project begins in 2003. At that time Drupal version was 4.1

Now it has reached more that 3.500.000 downloads and it runs on morethan 200.000 websites.

The actual Drupal 8 version is 1.0-RC1

2

Page 5: [drupalday2017] - Devel - D8 release party

Devel usage

3

Page 6: [drupalday2017] - Devel - D8 release party

Maintainers

1 Author/Maintainers2 ======================3 - Moshe Weitzman <weitzman at tejasa DOT com> http://www.acquia.com4 - Hans Salvisberg <drupal at salvisberg DOT com>5 - Pedro Cambra https://drupal.org/user/122101/contact http://www.ymbra.com/6 - Juan Pablo Novillo https://www.drupal.org/u/juampynr7 - lussoluca https://www.drupal.org/u/lussoluca8 - willzyx https://www.drupal.org/u/willzyx

4

Page 7: [drupalday2017] - Devel - D8 release party

Devel

We are releasing the first stable version very soon!

So let’s see the new shiny features of Devel for Drupal 8.

5

Page 8: [drupalday2017] - Devel - D8 release party

Core integrations

Page 9: [drupalday2017] - Devel - D8 release party

Core integrations

Drupal 8 integrates a lot of module that in Drupal 7 were contrib.

The new Devel leverages those modules to provide information and newfeatures to developers.

6

Page 10: [drupalday2017] - Devel - D8 release party

Toolbar

7

Page 11: [drupalday2017] - Devel - D8 release party

Toolbar

• Devel is now directly integrated into the core Toolbar module

• Visible links are configurable

• When in vertical mode the Toolbar shows all links

8

Page 12: [drupalday2017] - Devel - D8 release party

Services, routing and events

Drupal 8 adds a lot of new concepts and structures that developers needsto understand in order to build new modules.

Devel now provides report pages for services, routing and events andmany more.

9

Page 13: [drupalday2017] - Devel - D8 release party

Manage configuration and state

Goodby Variables API, welcome Configuration Management System andState API!

You can use Devel to inspect and edit both sistems.

10

Page 14: [drupalday2017] - Devel - D8 release party

All features

• Cache clear• Config editor• Container Info• Current route info• Element Info• Entity Info• Events Info• Execute PHP• Field Info• PHPinfo()• Rebuild Menu• Reinstall Modules• Routes Info• Run cron• State editor• Theme registry• View Session 11

Page 15: [drupalday2017] - Devel - D8 release party

Switch users

As in Drupal 7, Devel provides a block that allows a quick switchbetween users.

12

Page 16: [drupalday2017] - Devel - D8 release party

Twig extensions

• devel_dump

• devel_message

• devel_breakpoint

13

Page 17: [drupalday2017] - Devel - D8 release party

Dumpers

Page 18: [drupalday2017] - Devel - D8 release party

Available dumpers

• Drupal variable

• Doctrine debug

• Symfony var-dumper

• ChromePHP

• FirePHP

14

Page 19: [drupalday2017] - Devel - D8 release party

Add a dumper

1 <?php

2 /**

3 * @DevelDumper(

4 * id = "example_dumper",

5 * label = @Translation("Example dumper"),

6 * description = @Translation("Example dumper ..."),

7 * )

8 */

9 class ExampleDumper extends DevelDumperBase {

15

Page 20: [drupalday2017] - Devel - D8 release party

Add a dumper

1 <?php

2 interface DevelDumperInterface {3

4 public function dump($input, $name = NULL);5 public function export($input, $name = NULL);6 public function exportAsRenderable($input, $name = NULL);7 public static function checkRequirements();

16

Page 21: [drupalday2017] - Devel - D8 release party

Webprofiler

Page 22: [drupalday2017] - Devel - D8 release party

Webprofiler

The old Devel query logger and memory profiler has been moved to asub-module: Webprofiler.

17

Page 23: [drupalday2017] - Devel - D8 release party

Realtime data

The report pages that Devel shows about services, routing and so on,lists all data available in a Drupal website.

Webprofiler instead collects data about the rendered page, so it is usefulto measure performance data.

18

Page 24: [drupalday2017] - Devel - D8 release party

Available data collectors - 1

• Assets

• Blocks

• Cache

• Config

• Database

• Devel

• Events

• Extensions

• Forms

• Http

• Mail

19

Page 25: [drupalday2017] - Devel - D8 release party

Available data collectors - 2

• PHP Config

• Performance Timing

• Request

• Routing

• Services

• State

• Theme

• Timeline

• User

• Views

20

Page 26: [drupalday2017] - Devel - D8 release party

Integration with XHProf

Webprofiler collects high level Drupal data structure. If we need PHPfunction level data about performance we need a hierarchical profiler likeXHProf (or Tideways for PHP 7.x)

The Drupal XHProf module adds a new data collector for Webprofiler.

21

Page 27: [drupalday2017] - Devel - D8 release party

Call for volunteers

Do you want to contribute to Devel? We need help for development,testing, documentation, UX.

What are you waiting for? Contact us!

22

Page 28: [drupalday2017] - Devel - D8 release party

Call for developers

Wellnet is hiring!

We are looking for:

• Drupal/PHP developer

• Frontend developer

• DevOps

23

Page 29: [drupalday2017] - Devel - D8 release party

Thank you!

24

Page 30: [drupalday2017] - Devel - D8 release party

Questions?

25

Page 31: [drupalday2017] - Devel - D8 release party

26