getInlineBlockDependency error

Created on 7 November 2023, about 1 year ago

Problem/Motivation

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.

Steps to reproduce

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
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇸🇪Sweden MickeA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024