Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using ctools_context_handler_render() function to render a panels task programmatically.
To make it work properly, I'm prepared and passed an array of contexts.
And all is ok, except logic of ctools_entity_from_field_context() function — for some reason entity loaded again, while it's already available in context's data property.
In most of the cases there is no difference but in my case I want to have exactly the same $context->data object, which is modified cloned entity object, while entity_load() will load vanilla/cached entity.
So I wonder, why $context->data is not used?
Comments
Comment #2
MustangGB CreditAttribution: MustangGB commented