Devel
D8 - Release party
Luca Lusso
3 marzo 2017
Wellnet
Introduction
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
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 more
than 200.000 websites.
The actual Drupal 8 version is 1.0-RC1
2
Devel usage
3
Maintainers
1 Author/Maintainers
2 ======================
3 - Moshe Weitzman <weitzman at tejasa DOT com> http://www.acquia.com
4 - 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/juampynr
7 - lussoluca https://www.drupal.org/u/lussoluca
8 - willzyx https://www.drupal.org/u/willzyx
4
Devel
We are releasing the first stable version very soon!
So let’s see the new shiny features of Devel for Drupal 8.
5
Core integrations
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 new
features to developers.
6
Toolbar
7
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
Services, routing and events
Drupal 8 adds a lot of new concepts and structures that developers needs
to understand in order to build new modules.
Devel now provides report pages for services, routing and events and
many more.
9
Manage configuration and state
Goodby Variables API, welcome Configuration Management System and
State API!
You can use Devel to inspect and edit both sistems.
10
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
Switch users
As in Drupal 7, Devel provides a block that allows a quick switch
between users.
12
Twig extensions
• devel_dump
• devel_message
• devel_breakpoint
13
Dumpers
Available dumpers
• Drupal variable
• Doctrine debug
• Symfony var-dumper
• ChromePHP
• FirePHP
14
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
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
Webprofiler
Webprofiler
The old Devel query logger and memory profiler has been moved to a
sub-module: Webprofiler.
17
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 useful
to measure performance data.
18
Available data collectors - 1
• Assets
• Blocks
• Cache
• Config
• Database
• Devel
• Events
• Extensions
• Forms
• Http
• Mail
19
Available data collectors - 2
• PHP Config
• Performance Timing
• Request
• Routing
• Services
• State
• Theme
• Timeline
• User
• Views
20
Integration with XHProf
Webprofiler collects high level Drupal data structure. If we need PHP
function level data about performance we need a hierarchical profiler like
XHProf (or Tideways for PHP 7.x)
The Drupal XHProf module adds a new data collector for Webprofiler.
21
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
Call for developers
Wellnet is hiring!
We are looking for:
• Drupal/PHP developer
• Frontend developer
• DevOps
23
Thank you!
24
Questions?
25
26

[drupalday2017] - Devel - D8 release party

  • 1.
    Devel D8 - Releaseparty Luca Lusso 3 marzo 2017 Wellnet
  • 2.
  • 3.
    About me • LucaLusso • 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
  • 4.
    Devel Devel module turns8! 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 more than 200.000 websites. The actual Drupal 8 version is 1.0-RC1 2
  • 5.
  • 6.
    Maintainers 1 Author/Maintainers 2 ====================== 3- Moshe Weitzman <weitzman at tejasa DOT com> http://www.acquia.com 4 - 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/juampynr 7 - lussoluca https://www.drupal.org/u/lussoluca 8 - willzyx https://www.drupal.org/u/willzyx 4
  • 7.
    Devel We are releasingthe first stable version very soon! So let’s see the new shiny features of Devel for Drupal 8. 5
  • 8.
  • 9.
    Core integrations Drupal 8integrates a lot of module that in Drupal 7 were contrib. The new Devel leverages those modules to provide information and new features to developers. 6
  • 10.
  • 11.
    Toolbar • Devel isnow directly integrated into the core Toolbar module • Visible links are configurable • When in vertical mode the Toolbar shows all links 8
  • 12.
    Services, routing andevents Drupal 8 adds a lot of new concepts and structures that developers needs to understand in order to build new modules. Devel now provides report pages for services, routing and events and many more. 9
  • 13.
    Manage configuration andstate Goodby Variables API, welcome Configuration Management System and State API! You can use Devel to inspect and edit both sistems. 10
  • 14.
    All features • Cacheclear • 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
  • 15.
    Switch users As inDrupal 7, Devel provides a block that allows a quick switch between users. 12
  • 16.
    Twig extensions • devel_dump •devel_message • devel_breakpoint 13
  • 17.
  • 18.
    Available dumpers • Drupalvariable • Doctrine debug • Symfony var-dumper • ChromePHP • FirePHP 14
  • 19.
    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
  • 20.
    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
  • 21.
  • 22.
    Webprofiler The old Develquery logger and memory profiler has been moved to a sub-module: Webprofiler. 17
  • 23.
    Realtime data The reportpages 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 useful to measure performance data. 18
  • 24.
    Available data collectors- 1 • Assets • Blocks • Cache • Config • Database • Devel • Events • Extensions • Forms • Http • Mail 19
  • 25.
    Available data collectors- 2 • PHP Config • Performance Timing • Request • Routing • Services • State • Theme • Timeline • User • Views 20
  • 26.
    Integration with XHProf Webprofilercollects high level Drupal data structure. If we need PHP function level data about performance we need a hierarchical profiler like XHProf (or Tideways for PHP 7.x) The Drupal XHProf module adds a new data collector for Webprofiler. 21
  • 27.
    Call for volunteers Doyou want to contribute to Devel? We need help for development, testing, documentation, UX. What are you waiting for? Contact us! 22
  • 28.
    Call for developers Wellnetis hiring! We are looking for: • Drupal/PHP developer • Frontend developer • DevOps 23
  • 29.
  • 30.
  • 31.