GraphViz BlockStorageUnitTest

Trying to convert BlockStorageUnitTest to a real unit test. It seemed trival.

Drupal 8 Modules Graph

Below a graph generated from the module list of a Drupal 8 development site.

Views in Core - awesome UML route

http://quaker-animals.co.uk/wp-content/uploads/2009/11/20091106_40c350a90ef62bf318e6UMlAbPMfLZ2J-300x225.jpg

Playing around with Drupal 8 together with Graph API and Graph I generated this UML through admin/config/system/graphapi/uml/Drupal\views\Plugin\Core\Entity\View ... it has some rough edges still.

Tell us what you think of this UML Diagram and your needs to have on site information.

Langcodes and plural forms

We all know Drupal and Symfony do have multilingual support (i18n, l10n, pluralization). But do they match? Or do they equally well? How does one test this? This is what I did. I wanted to add tests for Symfonfy's PluralizationRules as there were none and I wanted to have support for PluralForms loading Drupals *.po files clean and simple. How hard can it be?!? These tests should cover:
  1. Langcodes. Are all known language codes available (or easy to add)?
  2. Parsing Gettext PluralForm rules like

Symfony development from a Drupal perspective

While still working on D8MI Let Symfony Translation component handle language messages I needed to code for Symfony to on the Translation component. So how does that work writing and testing Symfony code?

Download Symfony

cd /tmp
git clone https://github.com/symfony/symfony.git 
cd symfony
ls

Dependency management

A pinch of Symfony for D8MI?

http://www.mjdinteractive.com/mjd-blog/2012/04/drupal-8-to-utilize-symfony-2-components/
One of the goals of Drupal 8 Multilingual Inititive is to refactor Gettext file handling by a component. The first effort was Make gettext .po generation its own abstracted functionality by Gábor Hojtsy, Sutharsan, fubhy, sun and clemens.tolboom While I (clemens.tolboom) was working on that issue I skimmed over the Translation component delivered by Symfony to see whether we could match their architecture (why reinvent components?) or even take over their components.

Drush entity support (patch needs review)

http://3wavesmedia.com/sites/default/files/drush.png
Can you tell the field display weights of all your entities with one command? Or edit a node through the command-line?
drush --yaml entity-type-read node --fields=**/display/**/weight --include-fieldapi
drush entity-update node 12 --json
Watch the video on http://www.youtube.com/watch?v=cVGZzWjdDh8 and get convinced you want to know more of these entity internals.

My two halves of The Definitve Guide to Drupal 7

Book cut into half
Yesterday I ordered The definitive Guide to Drupal from the dutch online site comcol.nl. Awesome delivery. I have to read the monster 1047 pages but decided to cut it two pieces as that split version is allowed on my desk.

grep those gits aka drupal contribs

http://images.icanhascheezburger.com/completestore/2009/1/21/128770736688691365.

Following along the git migration and project cannot be grepped anymore I brewed the following code.

It assumes the gits are already cloned and placed is one common directory.

After running the script all repositories with a $major == 7 branch are set into the highest version.

I'm puzzling how to 'empty' the non $major compatible repos.

The fun part is now doing analysis on the tree

Deleting nodes with drush

http://www.seamless3d.com/tut/build_av/delete_node.png

By creating a php file named ~/.drush/content.drush.inc containing