Blog

Replacement for clone_view() in Drupal 8


In Drupal 8, view::clone_view() (Drupal 7) and its inital replacement ViewExecutable::cloneView() was removed in #1858054: Remove ViewExecutable::cloneView(). Occasionally, a module may have the need to copy a view to perform additional query modifications without affecting the original view (think attachments and aggregation).

Luckily, there are a couple of ways to perform a similar cloning.

[read more]

Quick tips on using Devel and Kint for Drupal 8 debugging


In the Drupal 8 Devel module, a wrapper for the Kint debugging tool is included. This needs to be enabled in addition to Devel, and provides a stylish replacement for the Krumo output found in the Drupal 7 version.

To debug variables and objects withDevel and Kint, use one of various print methods: dpm(), dsm(), kpr(), kprint_r() in core or contrib (php) code:

[read more]

Looking into the past


Ok, not so "in depth", but a fun exercise none the less.

I've recently sifted through my archives to uncover some of my previous web designs for my personal / portfolio site. Here are some quick snapshots.

Note: I've also been amazed that most of these are still functional with modern browsers, similar to the old Space Jam site, nothing broken, everything legible. Not responsive (or attractive), but functional.

'03 Edition - Probably the first website I ever created.

[read more]