[Luca Lusso] - Devel - D8 release party
-
Upload
wellnet-srl -
Category
Technology
-
view
23 -
download
0
Transcript of [Luca Lusso] - Devel - D8 release party
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 morethan 200.000 websites.
The actual Drupal 8 version is 1.0-RC1
2
Devel usage
3
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
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 newfeatures 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 needsto understand in order to build new modules.
Devel now provides report pages for services, routing and events andmany more.
9
Manage configuration and state
Goodby Variables API, welcome Configuration Management System andState 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 switchbetween 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 asub-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 usefulto measure performance data.
18
Available data collectors - 1
• Assets
• Blocks
• Cache
• Config
• Database
• Devel
• Events
• Extensions
• Forms
• Http
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 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
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