@mglaman@phpc.social
@mglaman@phpc.social avatar

mglaman

@mglaman@phpc.social

#php && #drupal dev

mglaman.eth | nmdmatt@twitter.com

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mglaman, to random
@mglaman@phpc.social avatar

Happy weekend! The pool is clean and I'm sure Wisconsin weather will crap out on us. But time to kick back and finish Fog & Fireflies by @hestenet

mglaman, (edited ) to random
@mglaman@phpc.social avatar

Last minute webinar with the @drupal4gov folks! Stuck on Drupal 7? Save time upgrading from Drupal 7 to Drupal 10 using Retrofit.

Thursday the 16th at 3PM EDT

https://www.tickettailor.com/events/drupal4gov/1221649

mglaman, to drupal
@mglaman@phpc.social avatar
mglaman, to random
@mglaman@phpc.social avatar

Working on a post-DrupalCon blog post, but in the meantime, you can watch the recording of my presentation "Save time upgrading from Drupal 7 to Drupal 10 using Retrofit." There are about 25 minutes of slides and 30 minutes of discussion.

https://www.youtube.com/watch?v=C92LWKVhLmI

mglaman, to random
@mglaman@phpc.social avatar

So long ! It was a blast. I loved seeing everyone again and meeting so many new folks. Until next time!

mglaman, to random
@mglaman@phpc.social avatar

Currently, phpstan-drupal is still testing with PHP 7.4 and Drupal 9 for compatibility. I am considering bumping the minimum to PHP 8.1 and removing Drupal 9 from CI checks.

I wanted to solicit feedback before doing so https://github.com/mglaman/phpstan-drupal/issues/760

mglaman, to drupal
@mglaman@phpc.social avatar

I opened a DX issue for to make Drupal automatically installable with default environment variables. I'd love your feedback! https://www.drupal.org/project/drupal/issues/3445816

mglaman, to random
@mglaman@phpc.social avatar

A BoF was scheduled for Retrofit - room G131 at 3:3Opm! If you want to ask questions about Retrofit for your Drupal 7 upgrade, that's the place to be

mglaman, to drupal
@mglaman@phpc.social avatar

Room A106 at 9pm, come learn how Retrofit for Drupal can save you time upgrading from 7 to 10

mglaman, to random
@mglaman@phpc.social avatar

The picture doesn't do it justice, but this spot is my favorite at MKE, especially on a sunny morning like today.

Officially on my way to , can't wait!

mglaman, to drupal
@mglaman@phpc.social avatar

I hope to see you bright and early on Monday at 9 AM PDT at @drupalcon for my session on using Retrofit to save time upgrading from Drupal 7 to 10 and beyond!

https://events.drupal.org/portland2024/session/save-time-upgrading-drupal-7-drupal-10-using-retrofit

mglaman, to drupal
@mglaman@phpc.social avatar
mglaman, to random
@mglaman@phpc.social avatar

For my blog, I wrote a media type source plugin that allows adding rich embeds of links (like on social platforms.)

Should I turn it into a contrib module? I call them "Embed links", I'm not sure what the project would be named.

mglaman,
@mglaman@phpc.social avatar

@DaleTrexel I use the embed/embed library, which normalizes open graph and other metadata. It's really simplistic

$embed_link = (new Embed)->get($media_url);

return match ($name) {
'default_name', 'title' => $embed_link->title,
'url' => $media_url,
'description' => $embed_link->description,
'image' => $embed_link->image,
default => null,
};

mglaman,
@mglaman@phpc.social avatar

@mandclu but, even sandbox need a name ๐Ÿค”

mglaman,
@mglaman@phpc.social avatar

@DaleTrexel @mandclu I was thinking "Rich" should be in the name, and "Rich Links" is probably too generic. Unless media_rich_links

mglaman,
@mglaman@phpc.social avatar

@DaleTrexel I was thinking the media prefix in machine name since it's for the media module.

The display name could be "Media: Content Embed Links"

or just call it "Media: Embed Links", media_embed_links and call it a day

mglaman, to drupal
@mglaman@phpc.social avatar
mglaman, to drupal
@mglaman@phpc.social avatar

This needs to be a blog post, but here's an example of how smart_date can handle a deprecation in 10.2 and keep ^9 || ^10 compatibility

MR https://git.drupalcode.org/project/smart_date/-/merge_requests/81

Blog about DeprecationHelper https://mglaman.dev/blog/writing-backward-compatible-deprecation-fixes-contributed-modules-will-be-much-easier-drupal

mglaman, to drupal
@mglaman@phpc.social avatar

Are you using @phpstan on your projects yet? Learn about PHPStan at my talk, "Tighten up your Drupal code using PHPStan," at 11:15am! Room 314A

markusstaab, to opensource German
@markusstaab@phpc.social avatar

anyone aware of a which is heavily relying on process isolation?

I am working on reducing overhead of process isolation and would love testing my progress on a real world test-suite.

RT welcome

mglaman,
@mglaman@phpc.social avatar

@markusstaab Drupal. All kernel test suite tests use it.

mglaman,
@mglaman@phpc.social avatar

@markusstaab yes, I can write up a list for running them when I'm desktop today, making a note for myself. I meant to before but got caught up at a conference

mglaman,
@mglaman@phpc.social avatar

@markusstaab I will! if you're still curious:

SIMPLETEST_DB=sqlite://localhost/db.sqlite php vendor/bin/phpunit -c core/phpunit.xml --testsuite kernel

For all kernel tests in Drupal core

Or a subset

SIMPLETEST_DB=sqlite://localhost/db.sqlite php vendor/bin/phpunit -c core/phpunit.xml core/modules/system/tests/src/Kernel

mglaman,
@mglaman@phpc.social avatar

@markusstaab shoot, we're stuck on 9. was this released for 11 only?

mglaman,
@mglaman@phpc.social avatar

@markusstaab D10 is blocked on 9, but I think 11 is bumping to 10 or 11. I've dropped a mention in Drupal Slack for folks to check (I don't know if we've made the bump yet)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • megavids
  • cubers
  • magazineikmin
  • GTA5RPClips
  • khanakhh
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • thenastyranch
  • everett
  • osvaldo12
  • kavyap
  • rosin
  • anitta
  • DreamBathrooms
  • Durango
  • modclub
  • ngwrru68w68
  • vwfavf
  • ethstaker
  • tester
  • cisconetworking
  • tacticalgear
  • Leos
  • provamag3
  • normalnudes
  • JUstTest
  • All magazines