Problem/Motivation
This looks like a really interesting module! I tried to place a block on a Node. It looks like it's triggering the following PHP error:
TypeError: Drupal\content_moderation\EntityTypeInfo::isModeratedEntityEditForm(): Argument #1 ($form_object) must be of type Drupal\Core\Form\FormInterface, null given, called in /var/www/html/drupal/core/modules/content_moderation/src/EntityTypeInfo.php on line 345 in Drupal\content_moderation\EntityTypeInfo->isModeratedEntityEditForm()
(line <em class="placeholder">380</em>
of <em class="placeholder">core/modules/content_moderation/src/EntityTypeInfo.php</em>
). <pre class="backtrace">Drupal\content_moderation\EntityTypeInfo->formAlter(Array, Object, 'lb_plus_place_block ') (Line: 165)
content_moderation_form_alter(Array, Object, 'lb_plus_place_block ') (Line: 545)
Drupal\Core\Extension\ModuleHandler->alter('form ', Array, Object, 'lb_plus_place_block ') (Line: 151)
Drupal\lb_plus\Controller\DropZones->placeBlock(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 591)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
</pre>
I wonder if this is because I have workflows enabled for the node type?
Steps to reproduce
- Install Drupal on 11.x using Umami install profile
- Enable LB Plus
- Try to place a block to a node, e.g. "Who's online" block.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes