Drupal: Get the current entityFirst things first, it’s not always possible to get the current entity, some routes will have more than 1 entity, some wont have any, drush wont give a route. But most of the time, what you want when talking about the current entity is the entity bei...Aug 11, 2025·5 min read
The Neverending ObjectI've been messing with the Proxy object lately, and I've created a very simple proxy, that allows for a neverending object chain. It's basically a chain of No operations, and yes I know it's a hard sell, but I used it to rekindle one of my old projec...Apr 17, 2023·3 min read
Peek inside the Drupal Search API blackboxUsing the Search API Generic Devel module, for easier creation of new indicesNov 17, 2022·3 min read
Drupal: Setting the 'Date' field valueMaking sure the timezone and date format is set accordinglyOct 12, 2022·3 min read
Using JavaScript Proxy to automatically time your functionsA proof of concept for timing and counting all calls to an object.Sep 12, 2022·7 min read
Native PHP pingTo make a ping you'll need to know about the PHP Socket functions, ICMP protocol and Computing the Internet Checksum (don't let the RFCs scare you, the basics will be covered here). Echo message The ICMP header starts after the regular IP header (whi...Jul 14, 2022·7 min read