![]() ![]() $settings = '\Drupal\webprofiler\DependencyInjection\TraceableContainer' īy following these instructions, you should be able to see SQL syntax highlighting (the highlightjs library) and see a very detailed timeline (the d3 library). $class_loader->addPsr4( 'Drupal\\webprofiler\\', ) LOLįinally, two items need to be added to your settings.php or your. And, in case it's not obvious, composer.json needs to be proper JSON. ![]() There were some extra bits in the readme that actually created malformed JSON. If you stick the lastest version of this library in there, it won't work. D3: Data-Driven Documents and Highlight.js This adds two libraries to the right place. Uses drupalsetmessage () 1 call to dpm () dsm in. Instead, here is my complete repositories section you can review and hopefully gain insight from: "repositories": [ Log in Create account Devel 5.x-1.x devel.module function dpm Same name and namespace in other branches 6.x-1.x devel.module \dpm () 7.x-1.x devel.module \dpm () 8.x-1.x devel.module \dpm () Print a variable to the 'message' area of the page. It never worked for me or anyone else I have spoken to about this. You can tell this works when the libraries go into the right place, and if you have not installed any other libraries, the library directory won't exist there until you install something using this installer path. This tells composer to push certain items into your libraries directory. However, I appreciate examples of someone's complete changes, so here is mine: I am still fairly new at composer, but not at JSON, so it's not so bad. Then, modify your composer.json for the project. It has support for the various Drupal paths we all know and love: drupal-core To fix any Kint-missing-module-error, simply downgrade Devel composer require drupal/devel:2. It will install their package to the correct location based on the specified package type. In summary, this is for PHP package authors to require in their composer.json. Secondly, tell composer to install the composer installer: composer require - prefer - dist composer/installers These answers are what I want to share here.įirst, get the module installed: composer require drupal/devel You can read more about the module here: Īfter digging on, a less than ideally-organized haystack with the occasional needle, the answer was discovered. To my horror, I discovered that the devel module uses two libraries, and the readme file was actually not completely helpful in how to have composer install the libraries and get the Timeline feature to work. And in the case of Drupal 8, I really like to have Composer handle all my installations, putting even libraries in their correct home. I also like to examine page loads and look for potential bottlenecks that increase page load time. For example, I like my /admin/reports/status pages to be perfect. Since starting with Drupal in 2008 I have always been a bit of a nut about getting things as perfect as possible. Dan: My name is Dan, and I have a Status Page problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |