Using the Search API Generic Devel module, for easier creation of new indices · Disclaimer: I'm the developer of the Search API Generic Devel module The...
Making sure the timezone and date format is set accordingly · Snippet use Drupal\Core\Datetime\DrupalDateTime; use...
A proof of concept for timing and counting all calls to an object. · The Proxy class is a way of intercepting calls to an object. This post assumes basic...
To 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,...
Filter a Hashnode blog RSS feed by tags (and other properties) · The problem If you have a blog hosted on hashnode you'll automatically get a lot of...
Snippet if (\Drupal::service('router.admin_context')->isAdminRoute()) { // ... } The router.admin_context service maps to the AdminContext helper...