Filtering out invalid entity references in Drupal 8
Fri, 07/06/2018 - 15:15
Today I was working on a custom Drupal 8 form where I needed an option to purge existing entities and their references on a parent entity before running an import. It seemed pretty straightforward until I saw "ghost" values persisting on the parent entity's inline entity form. Here's my journey down the rabbit hole to fix broken entity reference values.
Looking back at my first Drupal events and talks
Sun, 05/13/2018 - 01:00
I have been spending the month of May cleaning out my basement office. I have found a treasure trove of old papers and random things bringing up memories and other thoughts. Just like my last blog post on an organization's values and the culture it creates. This time I found two legal pads which had my notes and planning for my first Drupal Meetup talk and first came session.
PhpStorm: PHP Fatal error: Class 'PHPUnit_TextUI_ResultPrinter'
Fri, 04/27/2018 - 16:00
Recently I ran a good ole composer update on a client project. This updated Drupal and PHPUnit. I ran our PHPUnit tests via PhpStorm and ran into an odd error. Here's how I quickly fixed it!
Enabling RESTful web service interfaces in Drupal 8
Thu, 04/26/2018 - 04:00
Drupal 8 ships with the RESTful Web Services module which allows you to expose various API endpoints for interacting with your Drupal site. While the community is making a push for the JSON API module, I have found the core' RESTful module to be pretty useful when I have custom endpoints or need to implement Remote Procedure Calls (RPC) endpoints. However, using the module and enabling endpoints is a bit rough. So, let's cover that! Also note, this blog covers the content from the introduction of the Web Services chapter from the Drupal 8 Development Cookbook.
DrupalCon: friends, family & fun in Nashville
Tue, 04/17/2018 - 21:00
DrupalCon is always something I look forward to, ever since attending my first one at DrupalCon Los Angeles 2015. As I wrote over a week ago, I drove down from Wisconsin with my wife and two boys to Nashville. We came down for the weekend before and stayed for the weekend after to do some touristing and vacationing. I tried to write one blog about DrupalCon but realized I couldn't really condense everything I had to say. So I plan on pushing out a few post-Nashville blogs.
The road to Nashville, DrupalCon and fun awaits!
Fri, 04/06/2018 - 07:00
It is that time of year, again! It is DrupalCon time! Woooooo. Last year DrupalCon Baltimore saw 3,271 attendees, and I'm thinking Nashville will bring in more (because, Nashville.) When this publishes and hits various feeds, I will be on the road and (hopefully) an hour into the eight-hour drive to Nashville with my family.
drupal_install_test.ibd: To start over, you must empty your existing database
Sun, 04/01/2018 - 23:00
In prep for DrupalCon Nashville, I was working on our Drupal Commerce demo sites that we'll be showing off. They have been running in silent mode for some time and recently received an overhaul so they use our demo and out of the box theme for Drupal Commerce, Belgrade.
From Drupal to Medium: automated cross posting
Fri, 03/30/2018 - 04:00
Back in February, I automated some of my content workflows. I use the Scheduler module to publish posts and have them automatically pushed into Buffer to be shared across my social networks. I'm attempting a new experiment once this node publishes. This should show up at my Medium account, https://medium.com/@mglaman
ContribKanbanNG: Drupal 8 as a progressively decoupled application
Sat, 03/17/2018 - 03:00
At the end of October 2017, I wrote about the new and upcoming changes to ContribKanban.com. I decided to migrate off of a MEAN stack and go to a more familiar (aka manageable) stack. I decided upon Drupal 8 to manage my backend. Drupal is what I do, and Drupal is amazing at modeling data. People can moan and whine - it handles data models like a boss. I decided to treat it as a "progressively" decoupled web application.