Matt Glaman

@mglaman
25 Followers
11 Following
25 Posts

I'm having some fun coding tonight and hacking on my #Drupal TypedData API by Example repo.

Drupal has this sweet data representation layer for typed data that is a hidden gem. I'm building a repository of examples, and hopefully building an EduTools course on the JetBrains marketplace as well.

https://github.com/mglaman/drupal-typed-data-by-example

GitHub - mglaman/drupal-typed-data-by-example: Drupal's Typed Data API by example

Drupal's Typed Data API by example. Contribute to mglaman/drupal-typed-data-by-example development by creating an account on GitHub.

GitHub

😭 I'm so spoiled by Form API in Drupal. I don't mind writing forms in HTML. But mixed PHP + HTML for forms is painful.

I just remembered that meta boxes in WordPress are registered in one spot, and then the submission is handled via another hook.

Not horrible. I'm just used to my tools.

Not Composer based, but the DDEV quickstart is also 💯

https://ddev.readthedocs.io/en/stable/users/quickstart/

CMS Quickstarts - DDEV Docs

Do local website development on your computer or in the cloud with DDEV.

GitHub - platformsh-templates/wordpress-composer: Wordpress (Composer)

Wordpress (Composer) . Contribute to platformsh-templates/wordpress-composer development by creating an account on GitHub.

GitHub

🤔 is there a community Composer template for #WordPress? I'm helping a friend out with a custom plugin and went to build a site locally.

It is _impossible_ to search for due to keyword stuffing of "compose" for page builders and of course "template"

TIL I have @mglaman and now I need to figure out aliasing/migrating
Drupal: cache tags for all, regardless your backend

Phil Karlton is quoted as having said, "There are only two hard things in Computer Science: cache invalidation and naming things." As someone who suffers horribly from the latter, I'm glad Drupal's caching APIs make the former a breeze. The long short of it is that caching of data improves performance by not having to perform the same operations multiple times after it has been done the first time until you need to re-run that operation again.

mglaman.dev

I opened an issue for #Drupal core to improve the DX for theme building. One setting to rule them all, instead of modifying development.services.yml and settings.local.php. No more `drush cr` to see changes in Twig templates.

https://www.drupal.org/project/drupal/issues/3278493

Make it easier for theme builders to enable Twig debugging and disable render cache

Problem/Motivation (I'm not sure where to put this, component wise.) Here is my go to configuration when theme building in Drupal: Turn on Twig debug in sites/default/services.yml: twig.config: debug: true auto_reload: null cache: true Disable page, dynamic_page, render cache so I get fresh data as I edit Twig templates: $settings['container_yamls'][] = DRUPAL_ROOT .

Drupal.org

Just learned about EduTools from JetBrains which allows you to build interactive courses and publish them to their marketplace.

I'm working on building a #Drupal Typed Data API course based on my Typed Data API by Example repo https://github.com/mglaman/drupal-typed-data-by-example

GitHub - mglaman/drupal-typed-data-by-example: Drupal's Typed Data API by example

Drupal's Typed Data API by example. Contribute to mglaman/drupal-typed-data-by-example development by creating an account on GitHub.

GitHub

Improve the #Drupal developer experience to empower the Ambitious Site Builder.

Some of my thoughts after the #driesnote at #DrupalConPortland

https://mglaman.dev/blog/improve-drupal-developer-experience-empower-ambitious-site-builder

Improve the Drupal developer experience to empower the Ambitious Site Builder

Today at DrupalCon we had the infamous Driesnote. The tone of the Driesnote focused on what we, as a project, should strategically focus on while building features on the Drupal 10.x.x branch. Dries wants to bring Drupal back to its roots by focusing on the site builder audience. This includes automatic updates, the project browser, and reimagining distributions as composable starter kits. This blog is an extension of a tweet I made at lunch, before catching my airplane home.

mglaman.dev