- Issue created by @ambot112
- Status changed to Needs review
about 1 year ago 3:23pm 30 April 2024 - 🇺🇸United States damienmckenna NH, USA
I wonder if there's a better way of doing it with BundleEntityFormBase rather than specifically hardcoding for MediaTypeForm?
- Status changed to Needs work
26 days ago 5:37pm 25 June 2025 - 🇦🇷Argentina dagmar Argentina
I had to remove the
instanceof
check fromDrupal\og_ui\BundleEntityFormAlter::formAlter(array &$form, FormStateInterface $form_state): void
In order to make patch #3 work.
if (!$form_state->getFormObject() instanceof BundleEntityFormBase) { throw new \InvalidArgumentException('Passed in form is not a bundle entity form.'); } static::prepare($form);
I'm pretty sure this check has a purpose but it was preventing showing the checkbox for media entities in my case.