fetch json and pretty print

json

While working on Deploy RestWS for D7 project issue JSON I needed a pretty print for the node.json and scanner done for Drush Issue Queue Commands Fix for the new json structure on d.o D7. Both issues as still open so help needed.

Doing some research I learned about the PHP context or more specific the HTTP stream context

At your Service Container

http://www.edtechmagazine.com/higher/sites/edtechmagazine.com.higher/files/imagecache/articlelarge/articles/2012/10/101212-2-300.png

As we all know Drupal 8 has lots of new stuff. One of these items is based on Dependency Injection and result in a new file stored at sites/defaults/files/php/service_container/service_container_prod.php/e7000f005xxx.php and created very early during the bootstrap of Drupal. But what is it's contents?

Knock knock who is calling

Knock knock

Who is calling my function so many times? With devel module and some probing using debug_backtrace and a nifty by ref variable it's a snap.

Just a trivial graph

A trivial graph
From a meeting we discussed the git workflow and I was curious what Graph API would do with it's Trivial Graph Format.

Is Drupal a swamped bazar?

Drupal 8 is is code and feature wise an awesome new kid on the block. A few people did a lot of coding. But can do a lot people little? In this blog I hope to get one change into the issue queue and that's getting rid of the needs tests kitten killer.

Convert D7 input filter into D8 plugin for Graph API

Trivial Graph Format for Graph API
Morphing Graph APIs Drupal 7 input filter 'Trivial Graph Format' aka hook_filter_info into a Drupal 8 plugin.

Can you dig it. Drupal nested array that is.

Spade Large

I sometime need to check arrays for their values dispersed around. Just dumping the array is OK when interested in a particular key or value. But what about those big info arrays from hook_token_info, hook_menu etc. This is what I did.

Routing discovery by Graph API

Image of _permission related to system module
How does the permission structure looks like for system.module? For this to visualize one needs to process system.routing.yml and

Service discovery by Graph API

With Drupal 8 a lot is configured instead of programmed. So the key is to find out how it comes together. Graph API helps rendering these configurations.

A Drupal 8 git bisect exercise

git-bisect.png
Having a Drupal 8 site under development with a customer aware of the risk of loosing data I took the risk of fixing a broken Drupal 8 site. Today I did an code update and got the following welcome screen on http://drupal.dev
If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild
Additional uncaught exception thrown while handling exception.
Original