- Issue created by @MickeA
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass
The function “getInlineBlockDependency” has been rewritten via this patch,
https://www.drupal.org/project/drupal/issues/3047022
🐛
Layout builder fails to assign inline block access dependencies for the overrides section storage on entities with pending revisions
Needs work
, and now return the access dependency.
This modules implementation of “getInlineBlockDependency“ needs to be updated accordingly.
If you, like us are using the latest patch from this issue https://www.drupal.org/project/drupal/issues/3047022 🐛 Layout builder fails to assign inline block access dependencies for the overrides section storage on entities with pending revisions Needs work for Drupal core layout builder you will get a PHP Fatal error with the komponent module.
PHP Fatal error: Declaration of Drupal\komponent\EventSubscriber\SetInlineBlockDependency::getInlineBlockDependency(Drupal\block_content\BlockContentInterface $block_content, string $operation) must be compatible with Drupal\layout_builder\EventSubscriber\SetInlineBlockDependency::getInlineBlockDependency(Drupal\block_content\BlockContentInterface $block_content, string $operation): ?Drupal\Core\Access\AccessibleInterface in /web/modules/contrib/komponent/src/EventSubscriber/SetInlineBlockDependency.php on line 19
Needs review
1.0
Code