Hello

I've updated v1 to v2 and this function has been removed

\Drupal::service('rabbit_hole.behavior_invoker')->getRabbitHoleValuesForEntity($entity)

I use this function to get "rh_action" from entity and change display of an entity.
I've not found any issue about that.

Any solution?

Thank a lot

Comments

Joouul created an issue. See original summary.

binnythomas’s picture

I am looking for a solution to this too. We are getting a WSOD after upgrading to the latest version of the module when our custom code is triggered this function.

binnythomas’s picture

In the latest version how do we know the equivalent of 'rh_action' ?

binnythomas’s picture

I was referring to the release notes and I was able to get this issue with helpful instructions for custom code - https://www.drupal.org/node/3359194

damienmckenna’s picture

Version: 2.0.0-alpha5 » 2.0.x-dev
damienmckenna’s picture

Title: getRabbitHoleValuesForEntity() removed in v2 » Document v2 replacement for getRabbitHoleValuesForEntity()
Component: Code » Documentation
Category: Support request » Task

The release notes need to be updated to cover this.