markhuot
markhuot's profile header
markhuot

@markhuot@phpc.social

November 11, 2022

Really struggling with the DX of adding Matrix blocks to a Matrix field with

in . Right now it's,

->addBlockTypeToFieldHandle()

But it feels very magic-y and I'm not loving the length of it. Thinking I need to get an enum or something involved to shorten this down in some way…

Older posts from other instances may not be displayed.
Open in original site

Elk Logo

Welcome to Elk!

Elk is a nimble Mastodon web client. You can login to your Mastodon account and use it to interact with the fediverse.

Expect some bugs and missing features here and there. Elk is Open Source and we're actively improving it as a community project. Join us and let's build it together!

If you'd like to report a bug, help us testing, give feedback, or contribute, reach out to us on GitHub and get involved.

To boost development, you can sponsor the Team through GitHub Sponsors. We hope you enjoy Elk!

三咲智子 Kevin DengAnthony FuJoaquín SánchezTAKAHASHI ShuujiDaniel RoePatak

The Elk Team